Skip to content

Commit

Permalink
refactor: Increase visibility of potential errors with console.error()
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-atomrigs committed Feb 14, 2024
1 parent 5760f54 commit 3cf8bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/www/src/lib/components/docs/copy-button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
function handleCopyError() {
console.log("Error copying");
console.error("Error copying");
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function fetchRegistry(paths: string[]) {

return results;
} catch (error) {
console.log(error);
console.error(error);
throw new Error(`Failed to fetch registry from ${baseUrl}.`);
}
}

0 comments on commit 3cf8bae

Please sign in to comment.