diff --git a/packages/daemon/src/mail.js b/packages/daemon/src/mail.js index e02adf1077..9e8bda7858 100644 --- a/packages/daemon/src/mail.js +++ b/packages/daemon/src/mail.js @@ -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 () =>