Skip to content

Commit 13479dd

Browse files
ffMathygismya
andauthored
fix: better error messages (#97)
* Better error messages. * Prettier formatting --------- Co-authored-by: Lars Johansson <lars.johansson@ftrack.com>
1 parent b2e7961 commit 13479dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ export class Session {
560560
if (reason instanceof Error) {
561561
throw this.getErrorFromResponse({
562562
exception: "NetworkError",
563-
content: reason.message,
563+
content: (reason.cause as string) || reason.message,
564564
});
565565
}
566566
throw new Error("Unknown error");

0 commit comments

Comments
 (0)