Skip to content

Commit

Permalink
Merge pull request #29 from polywrap/pileks/feat/improve-extract-logging
Browse files Browse the repository at this point in the history
Improve extraction logging | /workflows/release-pr
  • Loading branch information
pileks authored Sep 26, 2023
2 parents 4f402c3 + 0f1ef1f commit 2bb0240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
6 changes: 4 additions & 2 deletions src/lib/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ export async function extractSnippetsFromFile(
);

for (const snippet of foundSnippets) {
console.log("- Extract Snippet", snippet.name);
console.log(`- Extract Snippet ${snippet.name} in ${filePath}`);

if (snippets[snippet.name]) {
throw Error(`Duplicate Snippet Definition: ${snippet.name}`);
throw Error(
`Duplicate Snippet Definition: ${snippet.name} in ${filePath}`
);
}

snippets[snippet.name] = snippet.contents;
Expand Down

0 comments on commit 2bb0240

Please sign in to comment.