Skip to content

Commit 51aff29

Browse files
authored
Merge pull request #109 from VegarM/patch-1
Makes "unexpected event" error message more useful
2 parents 77e0594 + f19d1c1 commit 51aff29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-client/src/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Watch {
4343
if (obj.type && obj.object) {
4444
callback(obj.type, obj.object);
4545
} else {
46-
throw new Error(`unexpected object: ${obj}`);
46+
throw new Error(`unexpected object: ${JSON.stringify(obj)}`);
4747
}
4848
});
4949

0 commit comments

Comments
 (0)