Skip to content

Commit

Permalink
default error handling some more
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaster committed Sep 4, 2024
1 parent a20b3aa commit a396002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk-rtl/src/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,8 @@ export function sdkError(response: any) {
}
if ('message' in error) {
return new LookerSDKError(response.error.message.toString(), {
errors: error.errors,
documentation_url: error.documentation_url,
errors: error?.errors ?? [],
documentation_url: error?.documentation_url ?? '',
});
}
if ('statusMessage' in error) {
Expand Down

0 comments on commit a396002

Please sign in to comment.