Skip to content

Commit

Permalink
more robust check for details array
Browse files Browse the repository at this point in the history
  • Loading branch information
smorrisj committed Oct 17, 2023
1 parent 7789c8d commit 095a5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const isErrorRep = (err: unknown): err is ErrorRepresentation => {
typeof err === "object" &&
"message" in err &&
"details" in err &&
Array.isArray(err.details) &&
"errorCode" in err
) {
return true;
Expand Down

0 comments on commit 095a5b0

Please sign in to comment.