Show error right

This commit is contained in:
Owen
2026-05-29 17:11:44 -07:00
parent 0ab1854125
commit 9f83c0a0e8
2 changed files with 4 additions and 4 deletions
@@ -419,7 +419,7 @@ export default function Page() {
pamMode === "push" && pamMode === "push" &&
portVal portVal
? Number(portVal) ? Number(portVal)
: null; : undefined;
Object.assign(payload, { Object.assign(payload, {
subdomain: sanitizedSubdomain subdomain: sanitizedSubdomain
@@ -430,7 +430,7 @@ export default function Page() {
mode: resourceType, mode: resourceType,
pamMode, pamMode,
authDaemonMode: effectiveMode, authDaemonMode: effectiveMode,
authDaemonPort: effectivePort authDaemonPort: effectivePort || undefined
}); });
} else { } else {
const tcpUdpData = tcpUdpForm.getValues(); const tcpUdpData = tcpUdpForm.getValues();
+2 -2
View File
@@ -82,8 +82,8 @@ export default async function SshPage() {
error = "Failed to sign SSH key for PAM push authentication."; error = "Failed to sign SSH key for PAM push authentication.";
} }
} }
} catch (error) { } catch (err) {
console.error("Error fetching browser target:", error); console.error("Error fetching browser target:", err);
error = "No resource found for this domain"; error = "No resource found for this domain";
} }