|
@@ -8,7 +8,7 @@ class ProviderApiError extends Error {
|
|
* @param {number} statusCode the http status code from the provider api
|
|
* @param {number} statusCode the http status code from the provider api
|
|
*/
|
|
*/
|
|
constructor (message, statusCode) {
|
|
constructor (message, statusCode) {
|
|
- super(message)
|
|
|
|
|
|
+ super(`HTTP ${statusCode}: ${message}`) // Include statusCode to make it easier to debug
|
|
this.name = 'ProviderApiError'
|
|
this.name = 'ProviderApiError'
|
|
this.statusCode = statusCode
|
|
this.statusCode = statusCode
|
|
this.isAuthError = false
|
|
this.isAuthError = false
|