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 13, 2023
1 parent 66d62e0 commit 535063a
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 @@ -102,7 +102,9 @@ export const makeMailboxMaker = ({
}
return undefined;
}
throw new Error(`panic: Unknown message type ${message.type}`);
throw new Error(
`panic: Unknown message type ${/** @type {any} */ (message).type}`,
);
};

const listMessages = async () =>
Expand Down

0 comments on commit 535063a

Please sign in to comment.