Commit 93e6959e authored by jan.koester's avatar jan.koester
Browse files

test

parent f01b8db1
Loading
Loading
Loading
Loading
+2 −1
Changes for src/conf.h: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *******************************************************************************/

#include <stdexcept>
#include <string>
#include <vector>

@@ -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];
    }