Skip to content

Commit

Permalink
fix: handle error on get config instead of directly debug
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jun 24, 2019
1 parent f06bdb0 commit f182589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/lib/store-api/get-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

// log on files
const logger = require('console-files')
// handle Store API errors
const errorHandling = require('./error-handling')

module.exports = ({ appSdk, storeId, auth }, getHiddenData) => {
// read configured options from app data
Expand Down Expand Up @@ -36,7 +36,7 @@ module.exports = ({ appSdk, storeId, auth }, getHiddenData) => {
.catch(err => {
// cannot GET current application
// debug error
logger.error(err)
errorHandling(err)
throw err
})
}

0 comments on commit f182589

Please # to comment.