Skip to content

Commit

Permalink
Fix: renamed the error identifier to err
Browse files Browse the repository at this point in the history
  • Loading branch information
mellonis committed Jun 20, 2020
1 parent d2fea33 commit 1c15fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ router.put('/:id', ensureAuth, async (req, res) => {

res.redirect('/dashboard')
}
} catch (error) {
} catch (err) {
console.error(err)
return res.render('error/500')
}
Expand Down

0 comments on commit 1c15fd6

Please sign in to comment.