Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Include url in 403 error message (#153)
Browse files Browse the repository at this point in the history
This makes debugging some situations a bit easier.
  • Loading branch information
mortenn authored and thedark1337 committed May 3, 2018
1 parent 05f1f40 commit dd9d4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ class PlugAPI extends EventEmitter3 {
});
} else if (Object.is(err.statusCode, 403)) {
process.nextTick(() => {
throw new Error(err);
throw new Error(`${opts.url} responded with ${err.statusCode} (${err.statusMessage}`);
});
}

Expand Down

0 comments on commit dd9d4c1

Please sign in to comment.