Skip to content

Commit 3cfd4a6

Browse files
committed
Fix http client
1 parent 0c78566 commit 3cfd4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/httpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class httpClient {
1515
accessKey: string;
1616

1717
private handleHttpError(error: any, log: Logger): never {
18-
if (error.response) {
18+
if (error && error.response) {
1919
log.debug(`http response error: ${JSON.stringify({
2020
status: error.response.status,
2121
body: error.response.data

0 commit comments

Comments
 (0)