Fix error messages
This commit is contained in:
parent
b2a70e3ca2
commit
255c00305c
|
@ -98,7 +98,7 @@ export class SearchComponent implements OnInit, OnDestroy {
|
||||||
this.search()
|
this.search()
|
||||||
},
|
},
|
||||||
|
|
||||||
error: err => this.notifier.error(err.text)
|
error: err => this.notifier.error(err.message)
|
||||||
})
|
})
|
||||||
|
|
||||||
this.userService.getAnonymousOrLoggedUser()
|
this.userService.getAnonymousOrLoggedUser()
|
||||||
|
|
|
@ -148,7 +148,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
|
||||||
error: err => {
|
error: err => {
|
||||||
this.addingComment = false
|
this.addingComment = false
|
||||||
|
|
||||||
this.notifier.error(err.text)
|
this.notifier.error(err.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ export class AuthService {
|
||||||
let errorMessage = err.message
|
let errorMessage = err.message
|
||||||
|
|
||||||
if (err.status === HttpStatusCode.FORBIDDEN_403) {
|
if (err.status === HttpStatusCode.FORBIDDEN_403) {
|
||||||
errorMessage = $localize`Cannot retrieve OAuth Client credentials: ${err.text}.
|
errorMessage = $localize`Cannot retrieve OAuth Client credentials: ${err.message}.
|
||||||
Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.`
|
Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue