mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-05 07:16:24 +00:00
Show error right
This commit is contained in:
@@ -419,7 +419,7 @@ export default function Page() {
|
||||
pamMode === "push" &&
|
||||
portVal
|
||||
? Number(portVal)
|
||||
: null;
|
||||
: undefined;
|
||||
|
||||
Object.assign(payload, {
|
||||
subdomain: sanitizedSubdomain
|
||||
@@ -430,7 +430,7 @@ export default function Page() {
|
||||
mode: resourceType,
|
||||
pamMode,
|
||||
authDaemonMode: effectiveMode,
|
||||
authDaemonPort: effectivePort
|
||||
authDaemonPort: effectivePort || undefined
|
||||
});
|
||||
} else {
|
||||
const tcpUdpData = tcpUdpForm.getValues();
|
||||
|
||||
@@ -82,8 +82,8 @@ export default async function SshPage() {
|
||||
error = "Failed to sign SSH key for PAM push authentication.";
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error fetching browser target:", error);
|
||||
} catch (err) {
|
||||
console.error("Error fetching browser target:", err);
|
||||
error = "No resource found for this domain";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user