Proper error handling

FossilOrigin-Name: 6038046e6292e01cb33a84e30f6864b388bee73773e8fd5150ad7447fb861378
This commit is contained in:
me@ow.nekobit.net 2022-03-31 11:10:25 +00:00
parent 7dfb8c1257
commit bc62da764c
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ void content_notifications(struct session* ssn, mastodont_t* api, char** data)
mstdnt_cleanup_notifications(notifs, notifs_len);
}
else
notif_html = construct_error("Couldn't load notifications", NULL);
notif_html = construct_error(storage.error, NULL);
}

View file

@ -56,7 +56,7 @@ void tl_public(struct session* ssn, mastodont_t* api, int local)
if (mastodont_timeline_public(api, &args, &storage, &statuses, &status_count))
{
status_format = construct_error("An error occured loading the timeline", NULL);
status_format = construct_error(storage.error, NULL);
}
else {
// Construct statuses into HTML