4. Versuch mit mehr Debug ausgeben
This commit is contained in:
1 parent
84aa7f9631
commit
572a881f72
8 files changed
+516
-4
No files matched your search
@@ -680,9 +680,17 @@ async function wakeMobileClientsFromUi() {
|
||||
+ `(registriert: ${tokens}, verbunden: ${connected}).`
|
||||
);
|
||||
} else {
|
||||
const firstError = result.error
|
||||
|| (Array.isArray(result.errors)
|
||||
&& result.errors[0]
|
||||
&& result.errors[0].error)
|
||||
|| '';
|
||||
const detail = firstError
|
||||
? ` Grund: ${String(firstError).slice(0, 240)}`
|
||||
: '';
|
||||
showMobileToast(
|
||||
`Wecken fehlgeschlagen: ${Number(result.failed) || 0} Fehler `
|
||||
+ `bei ${candidates} Empfängern.`,
|
||||
+ `bei ${candidates} Empfängern.${detail}`,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user