1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Fix displaying error messages in error response.

This commit is contained in:
King_DuckZ 2017-05-15 21:46:35 +01:00
parent ba1b417f07
commit 00f32d43d3
2 changed files with 3 additions and 3 deletions

View file

@ -3,8 +3,8 @@
<div id="content" class="error">
{{> error_code}}
{{> error_message}}
{{error_code}}
{{error_message}}
</div>

View file

@ -49,7 +49,7 @@ namespace tawashi {
"Unable to connect to Redis."
};
parContext["error_message"] = err_descs[reason_code];
parContext["error_message"] = std::string(err_descs[reason_code]);
parContext["error_code"] = std::to_string(err_code);
parContext["error_id"] = std::to_string(reason_code);
}