Fix notifier messages/titles.

This commit is contained in:
John Livingston 2024-06-13 15:01:31 +02:00
parent 63d8e9789e
commit 8dede18070
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 3 additions and 3 deletions

View File

@ -241,9 +241,9 @@ function register (clientOptions: RegisterClientOptions): void {
} }
}) })
} }
} catch (error) { } catch (error: any) {
console.error(error) console.error(error)
peertubeHelpers.notifier.error('Room list failed') peertubeHelpers.notifier.error(error.toString(), await peertubeHelpers.translate(LOC_LOADING_ERROR))
} }
} }
}) })

View File

@ -193,7 +193,7 @@ export class ChannelEmojisElement extends LivechatElement {
await this.ptTranslate(LOC_ACTION_IMPORT_EMOJIS_INFO) await this.ptTranslate(LOC_ACTION_IMPORT_EMOJIS_INFO)
) )
} catch (err: any) { } catch (err: any) {
this.ptNotifier.error(err.toString()) this.ptNotifier.error(err.toString(), await this.ptTranslate(LOC_ERROR))
} finally { } finally {
this.actionDisabled = false this.actionDisabled = false
} }