mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-03 12:50:02 +00:00
Redirect to error.cgi when saving fails.
Not working yet, still getting there.
This commit is contained in:
parent
73707c2ad0
commit
4d31323bb1
9 changed files with 147 additions and 7 deletions
|
@ -18,6 +18,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "response.hpp"
|
||||
#include "error_reasons.hpp"
|
||||
#include <string>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/utility/string_ref.hpp>
|
||||
|
@ -36,7 +37,8 @@ namespace tawashi {
|
|||
|
||||
private:
|
||||
virtual void on_process() override;
|
||||
boost::optional<std::string> submit_to_redis (const boost::string_ref& parText, uint32_t parExpiry, const boost::string_ref& parLang) const;
|
||||
boost::optional<std::string> submit_to_redis (const boost::string_ref& parText, uint32_t parExpiry, const boost::string_ref& parLang);
|
||||
void error_redirect (int parCode, ErrorReasons parReason);
|
||||
|
||||
std::string m_error_message;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue