mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Display service call error message (#2874)
This commit is contained in:
parent
9383d80354
commit
34c6356a47
@ -71,14 +71,16 @@ export default (superClass) =>
|
||||
"Error calling service",
|
||||
domain,
|
||||
service,
|
||||
serviceData
|
||||
serviceData,
|
||||
err
|
||||
);
|
||||
}
|
||||
const message = this.hass.localize(
|
||||
"ui.notification_toast.service_call_failed",
|
||||
"service",
|
||||
`${domain}/${service}`
|
||||
);
|
||||
const message =
|
||||
this.hass.localize(
|
||||
"ui.notification_toast.service_call_failed",
|
||||
"service",
|
||||
`${domain}/${service}`
|
||||
) + ` ${err.message}`;
|
||||
this.fire("hass-notification", { message });
|
||||
throw err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user