Skip to content

Commit a970508

Browse files
committed
feat(clientconstructor): return only error response
1 parent f285480 commit a970508

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/create-client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const clientConstructor = ({ token, ...options }) => {
3535
}
3636
})
3737
.then(response => response.data)
38+
.catch(error => error.response.data)
3839
}
3940
}
4041
}

0 commit comments

Comments
 (0)