Loading src/conf.h +2 −1 Changes for src/conf.h: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <stdexcept> #include <string> #include <vector> Loading Loading @@ -117,7 +118,7 @@ namespace blogi { sql << "SELECT value FROM options WHERE key='" << key.c_str() << "'"; int rows=db.exec(sql,res); if(rows<1){ throw "configkey not found !"; throw std::runtime_error("configkey not found: " + key); } value=res[0][0]; } Loading Loading
src/conf.h +2 −1 Changes for src/conf.h: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #include <stdexcept> #include <string> #include <vector> Loading Loading @@ -117,7 +118,7 @@ namespace blogi { sql << "SELECT value FROM options WHERE key='" << key.c_str() << "'"; int rows=db.exec(sql,res); if(rows<1){ throw "configkey not found !"; throw std::runtime_error("configkey not found: " + key); } value=res[0][0]; } Loading