mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
wiz error handling
This commit is contained in:
committed by
Aiden McClelland
parent
e6518097f2
commit
e527aa9a5f
@@ -93,6 +93,7 @@ export class EmbassyPage {
|
||||
try {
|
||||
this.stateService.torAddress = (await this.stateService.setupEmbassy()).torAddress
|
||||
} catch (e) {
|
||||
this.errorToastService.present(`${e.message}: ${e.details}`)
|
||||
console.error(e.message)
|
||||
console.error(e.details)
|
||||
} finally {
|
||||
|
||||
@@ -39,7 +39,7 @@ export class RecoverPage {
|
||||
try {
|
||||
this.recoveryDrives = (await this.apiService.getDrives()).filter(d => !!d['embassy_os'])
|
||||
} catch (e) {
|
||||
this.errorToastService.present(e.message)
|
||||
this.errorToastService.present(`${e.message}: ${e.data}`)
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ export class SuccessPage {
|
||||
|
||||
async goToEmbassy () {
|
||||
window.location.reload()
|
||||
// await this.navCtrl.navigateForward(`/recover`, { animationDirection: 'forward' })
|
||||
}
|
||||
|
||||
async copyToClipboard (str: string): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user