a few qol fixes

This commit is contained in:
2026-07-21 20:04:33 +10:00
parent dd7e1f8981
commit e99d312937
2 changed files with 33 additions and 21 deletions

View File

@@ -362,6 +362,7 @@ int main() {
response.set_header("X-Logged-In", "true");
response.set_header("X-Username", user->name);
response.set_header("X-Bio", user->bio);
} catch (const std::runtime_error& e) {
response.status = 500;
response.set_content("<p>there was an error :( it is: " + std::string(e.what()) + "</p>", "text/html");