Skip to content

Commit

Permalink
fix: parsed mqtt messages
Browse files Browse the repository at this point in the history
  • Loading branch information
elraro committed Feb 1, 2024
1 parent afd188d commit f0455fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lib/mqtt/status/StatusStateMqttHandle.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class StatusStateMqttHandle extends RobotStateNodeMqttHandle {
} else if (statusState.value !== stateAttrs.StatusStateAttribute.VALUE.ERROR) {
return "No error";
} else {
return statusState.error?.message ?? "Unknown error";
return statusState.error?.message || statusState.error?.error_description || "Unknown error";
}
},
}).also((prop) => {
Expand Down

0 comments on commit f0455fb

Please sign in to comment.