Skip to content

Commit

Permalink
switch to console.error's for error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Hutchins authored and MynockSpit committed Oct 22, 2018
1 parent 4dbfa78 commit bb0c6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambdas/backend/catalog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const usagePlans = function() {
.catch((error) => {
// don't break if there's no catalog file
if (error.code === "NoSuchKey") {
console.log('error: No catalog.json file found. Please upload an api definition to `catalog/`.')
console.error('error: No catalog.json file found. Please upload an api definition to `catalog/`.')

return []
}

console.log(`error: ${error}`)
console.error(`error: ${error}`)

throw error
})
Expand Down

0 comments on commit bb0c6e0

Please sign in to comment.