mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-11-23 00:33:44 +00:00
Fix displaying error messages in error response.
This commit is contained in:
parent
ba1b417f07
commit
00f32d43d3
2 changed files with 3 additions and 3 deletions
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
<div id="content" class="error">
|
<div id="content" class="error">
|
||||||
|
|
||||||
{{> error_code}}
|
{{error_code}}
|
||||||
{{> error_message}}
|
{{error_message}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace tawashi {
|
||||||
"Unable to connect to Redis."
|
"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_code"] = std::to_string(err_code);
|
||||||
parContext["error_id"] = std::to_string(reason_code);
|
parContext["error_id"] = std::to_string(reason_code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue