fix(openwrt): allow No router/OpenWrt errors through RPC sanitizer

Without these prefixes in the allowlist, sanitize_error_message swallowed
the "No router configured" error and returned a generic "Operation failed",
so the frontend could never detect the unconfigured state and show the
connect form.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ssmithx 2026-06-29 00:58:30 +00:00
parent d71f36370d
commit 6c534715ec

View File

@ -64,6 +64,8 @@ pub(super) fn sanitize_error_message(msg: &str) -> String {
"Container",
"Image",
"Bitcoin address",
"No router",
"No OpenWrt",
];
for prefix in &user_facing_prefixes {
if msg.starts_with(prefix) {