Skip to content

Commit 10a5d62

Browse files
fix(web): exception type
1 parent 229cc59 commit 10a5d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/web/src/sdk.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class {{ spec.title | caseUcfirst }} {
325325

326326
return data;
327327
} catch (e) {
328-
throw new {{spec.title | caseUcfirst}}Exception(e.message);
328+
throw new {{spec.title | caseUcfirst}}Exception((<Error>e).message);
329329
}
330330
}
331331

0 commit comments

Comments
 (0)