forked from mirrors/treebird
Proper error handling
FossilOrigin-Name: 6038046e6292e01cb33a84e30f6864b388bee73773e8fd5150ad7447fb861378
This commit is contained in:
parent
7dfb8c1257
commit
bc62da764c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue