Skip to content

Commit

Permalink
Ensure an empty errorResponse gets picked up as a jetstream error
Browse files Browse the repository at this point in the history
  • Loading branch information
KlapTrap committed Jan 3, 2019
1 parent 6d7fd1e commit 31b353b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/app/core/jetstream.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export interface JetStreamError {
export function isJetStreamError(obj): JetStreamError {
return obj &&
obj.error && obj.error.status && obj.error.statusCode &&
obj.errorResponse ?
'errorResponse' in obj ?
obj as JetStreamError : null;
}

0 comments on commit 31b353b

Please sign in to comment.