fix(apple/M4): IntentError message must be a string literal

LocalizedStringResource is ExpressibleByStringLiteral, so a single literal
converts implicitly, but the "…" + "…" concatenation is a runtime String it
can't convert. Collapsed to one literal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-16 19:52:34 +02:00
parent 6d2e738070
commit 6ac7134e7c
@@ -67,8 +67,9 @@ enum IntentError: Error, CustomLocalizedStringResourceConvertible {
var localizedStringResource: LocalizedStringResource {
switch self {
case .noWakeAddress:
return "That host has no saved Wake-on-LAN address yet. Connect to it once so Punktfunk "
+ "can learn it."
// One string LITERAL LocalizedStringResource is ExpressibleByStringLiteral, but a
// `"" + ""` concatenation is a runtime String it can't convert.
return "That host has no saved Wake-on-LAN address yet. Connect to it once so Punktfunk can learn it."
}
}
}