Skip to content

Commit

Permalink
fix(daemon): Loosen type for panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Oct 16, 2023
1 parent f873cb1 commit 14d1abc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/daemon/src/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export const makeMailboxMaker = ({
}
return undefined;
}
throw Error(`panic: Unknown message type ${type}`);
throw new Error(
`panic: Unknown message type ${/** @type {any} */ (message).type}`,
);
};

const listMessages = async () =>
Expand Down

0 comments on commit 14d1abc

Please sign in to comment.