Skip to content

Commit

Permalink
Only warn when a message's payloadVariant is unrecognized, rather tha…
Browse files Browse the repository at this point in the history
…n error.
  • Loading branch information
ianmcorvidae authored and sachaw committed Mar 16, 2024
1 parent e2bf240 commit b1c9228
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/meshDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,10 @@ export abstract class MeshDevice {
break;
}
default: {
throw new Error(`Unhandled case ${decodedMessage.payloadVariant.case}`);
this.log.warn(
Types.Emitter[Types.Emitter.HandleFromRadio],
`⚠️ Unhandled payload variant: ${decodedMessage.payloadVariant.case}`,
);
}
}
}
Expand Down

0 comments on commit b1c9228

Please sign in to comment.