Skip to content

Commit 4986e9b

Browse files
Itai GendlerItai Gendler
authored andcommitted
fix not passing error in case of 401 error
1 parent f19783a commit 4986e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logic/api/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const sendHttpRequest = async (httpOptions, authContext, throwOnUnauthorized) =>
4040
});
4141

4242
if (!throwOnUnauthorized) {
43-
printError();
43+
printError(error);
4444
process.exit(1);
4545
} else {
4646
throw error;

0 commit comments

Comments
 (0)