Compare commits

...

2 commits

Author SHA1 Message Date
Marie
764bbcf05b merge: Bridged error message for when you try search for a post and it fails (!421)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/421

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
2024-02-19 08:33:10 +00:00
KevinWh0
6240f78c83 Seemed to have fixed it 2024-02-16 19:01:54 +01:00

View file

@ -109,10 +109,17 @@ export function promiseDialog<T extends Promise<any>>(
if (onFailure) {
onFailure(err);
} else {
alert({
type: 'error',
text: err,
});
if (err.message) {
alert({
type: 'error',
text: err.message,
});
} else {
alert({
type: 'error',
text: err,
});
}
}
});