1
0
mirror of https://github.com/NicolasConstant/sengi synced 2024-12-12 08:46:44 +01:00

fix error message, fix #561

This commit is contained in:
Nicolas Constant 2023-04-23 18:40:42 -04:00
parent 5d6672f379
commit 2bcac4622a
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -29,12 +29,12 @@ export class NotificationService {
try { try {
code = err.status; code = err.status;
if(err.message){ if(err.error && err.error.error) {
message = err.message;
} else if(err.error && err.error.error) {
message = err.error.error; //Mastodon message = err.error.error; //Mastodon
} else if(err.error && err.error.errors && err.error.errors.detail){ } else if(err.error && err.error.errors && err.error.errors.detail){
message = err.error.errors.detail; //Pleroma message = err.error.errors.detail; //Pleroma
} else if(err.message){
message = err.message;
} }
} catch (err) { } } catch (err) { }