fix: Remove empty catch blocks and add error logging
This commit is contained in:
@@ -63,7 +63,9 @@ export function ElectronLoginForm({
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (err) {}
|
||||
} catch (err) {
|
||||
console.error("Authentication operation failed:", err);
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("message", handleMessage);
|
||||
@@ -190,8 +192,12 @@ export function ElectronLoginForm({
|
||||
);
|
||||
}
|
||||
}
|
||||
} catch (err) {}
|
||||
} catch (err) {}
|
||||
} catch (err) {
|
||||
console.error("Authentication operation failed:", err);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Authentication operation failed:", err);
|
||||
}
|
||||
};
|
||||
|
||||
const handleError = () => {
|
||||
|
||||
@@ -37,7 +37,9 @@ export function ElectronServerConfig({
|
||||
if (config?.serverUrl) {
|
||||
setServerUrl(config.serverUrl);
|
||||
}
|
||||
} catch {}
|
||||
} catch (error) {
|
||||
console.error("Server config operation failed:", error);
|
||||
}
|
||||
};
|
||||
|
||||
const handleSaveConfig = async () => {
|
||||
|
||||
Reference in New Issue
Block a user