fix(ui): show real error message (not [object Object]) on OAuth link failure
This commit is contained in:
1 parent
00ac43c705
commit
88e1fcf1d5
1 file changed
+2
-1
@@ -5,6 +5,7 @@
|
||||
|
||||
import {
|
||||
api,
|
||||
errorMessage,
|
||||
events,
|
||||
type AppSettings,
|
||||
type SyncTargetInfo,
|
||||
@@ -104,7 +105,7 @@ class SettingsStore {
|
||||
window.open(authUrl, "_blank");
|
||||
this.linkMessage = "Finish sign-in in your browser…";
|
||||
} catch (e) {
|
||||
this.linkMessage = `Link failed: ${e}`;
|
||||
this.linkMessage = `Link failed: ${errorMessage(e)}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user