Skip to content

Commit

Permalink
Improved error logging (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo authored Jan 10, 2025
1 parent a269e77 commit 06a6774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,10 @@ export const getSyntaxPackage = (): Promise<typeof SyntaxPackage> => {
const roninSyntaxPath = resolveFrom.silent(process.cwd(), '@ronin/syntax/queries');

if (!roninSyntaxPath) {
// The newline is needed because a spinner is running before this message is printed.
// TODO: Make the spinner accessible in `Protocol`.
console.error(
'The "ronin" package must be installed in your project in order to create migrations.',
'\nThe "ronin" package must be installed in your project in order to create migrations.',
);
process.exit(1);
}
Expand Down

0 comments on commit 06a6774

Please sign in to comment.