Skip to content

Commit

Permalink
Fix err var shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Jan 28, 2020
1 parent 25400fe commit 4e865e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/prisma2/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ if (require.main === module) {
.catch((err) => {
let shouldExit = false

function handleIndividualError(err) {
function handleIndividualError(error) {
if (err.rustStack) {
handlePanic(err, packageJson.name, packageJson.version).catch(e => {
handlePanic(error, packageJson.name, packageJson.version).catch(e => {
if (debugLib.enabled('prisma')) {
console.error(chalk.redBright.bold('Error: ') + e.stack)
} else {
Expand Down

0 comments on commit 4e865e0

Please sign in to comment.