Skip to content

Commit

Permalink
Merge pull request #3301 from cloudfoundry-incubator/fix-jetstream-error
Browse files Browse the repository at this point in the history
Ensure an empty errorResponse gets picked up as a jetstream error
  • Loading branch information
nwmac authored Jan 4, 2019
2 parents f42e1e9 + 31b353b commit 1109baa
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 1109baa

Please sign in to comment.