Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit d0719d3

Browse files
author
Axel Rindle
committed
Provide the real error message
1 parent e99b8d1 commit d0719d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const rest = (options, callback) => {
6161
res.on('end', function() {
6262
// Make sure there are no errors and try to parse the response
6363
if (res.statusCode !== 200) {
64-
return callback(new Error(res.statusMessage), null);
64+
return callback(new Error(chunks), null);
6565
}
6666
const response = chunks.join('');
6767
let json = null;

0 commit comments

Comments
 (0)