Merge pull request #442 from vatesfr/pierre-fix-xo-error

fix(api): xoError is not an object
This commit is contained in:
Olivier Lambert 2016-11-07 18:18:45 +01:00 committed by GitHub
commit 8bedb1f3b9

View File

@ -290,7 +290,7 @@ export default class Api {
const xoError = XAPI_ERROR_TO_XO_ERROR[error.code]
if (xoError) {
throw xoError.error(error.params)
throw xoError(error.params)
}
throw error