Skip to content

Commit 5281977

Browse files
authored
Merge pull request #6 from vision10/error-should-be-thrown
error should be throwned not returned
2 parents b9db68c + 5a7b769 commit 5281977

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/ntlmClient.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ntlmClient.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "axios-ntlm",
3-
"version": "1.1.8",
3+
"version": "1.2.0",
44
"description": "An NTLM auth extension to the Axios HTTP library",
55
"main": "lib/ntlmClient.js",
66
"types": "lib/ntlmClient.d.ts",

src/ntlmClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function NtlmClient(credentials: NtlmCredentials, AxiosConfig?: AxiosRequ
7575
return resp;
7676
}
7777
else {
78-
return err;
78+
throw err;
7979
}
8080
});
8181

0 commit comments

Comments
 (0)