Skip to content

Commit

Permalink
fix: log errors when requiring migration scripts (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
disintegrator authored Mar 3, 2020
1 parent 5df84d0 commit e991c4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const createRun = ({ shouldThrow }) => async function run (argv) {
} catch (e) {
const message = chalk`{red.bold The ${argv.filePath} script could not be parsed, as it seems to contain syntax errors.}\n`
console.error(message)
console.error(e)
terminate(new Error(message))
}

Expand Down

0 comments on commit e991c4f

Please sign in to comment.