Skip to content

Commit 1255538

Browse files
author
Ilya Radchenko
committed
Merge pull request #15 from oliversalzburg/fix/404-error
Don't handle errors in the API layer
2 parents fcd6d35 + db81ea2 commit 1255538

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/api.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ function get(config, uri, callback) {
2727
if (err) {
2828
return callback(err);
2929
}
30-
31-
if (res.statusCode !== 200) {
32-
return callback(new Error("Cannot access GitLab API. Please verify your private token. (Status:" + res.statusCode + ")"));
33-
}
34-
30+
3531
callback(undefined, res.body);
3632
});
3733
}

0 commit comments

Comments
 (0)