Commit 5d255693 authored by jan.koester's avatar jan.koester
Browse files

mysql

parent 3228218a
Loading
Loading
Loading
Loading
+2 −2
Changes for src/blogi.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -639,7 +639,7 @@ void blogi::Blogi::api(libhttppp::HttpRequest& curreq, const int tid, DomainCont
                        } catch (libhttppp::HTTPException &e) {
                            // Failure response (e.g., invalid credentials, GPO check failed)
                            json_object* jfail = json_object_new_object();
                            json_object_object_add(jfail, "error", json_object_new_string(e.what().c_str()));
                            json_object_object_add(jfail, "error", json_object_new_string(e.what()));
                            json_object_object_add(respid, "login_failure", jfail);
                        }
                    } else {
@@ -1962,7 +1962,7 @@ void blogi::Blogi::Settings(libhttppp::HttpRequest& curreq,const int tid,const s
        } catch(libhttppp::HTTPException &e) {
            std::cerr << "settings: handler threw HTTPException: " << e.what() << std::endl;
            jformdata = json_object_new_object();
            json_object_object_add(jformdata, "message", json_object_new_string(e.what().c_str()));
            json_object_object_add(jformdata, "message", json_object_new_string(e.what()));
            json_object_object_add(jformdata, "message_type", json_object_new_string("error"));
        } catch(std::exception &e) {
            std::cerr << "settings: handler threw: " << e.what() << std::endl;
+0 −2
Changes for src/plugin.cpp: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -271,8 +271,6 @@ void blogi::Plugin::loadPlugins(const std::string &path, PluginArgs *args){
                    }
                    catch (const std::exception& e) {
                        std::cerr << "Error processing file " << entry.path().filename().string() << ": " << e.what() << std::endl;
                    }catch(libhttppp::HTTPException &e){
                         std::cerr << "Error processing file " << e.what() << ": " << e.what() << std::endl;
                    }
                }
            }