Commit 28591c9c authored by Thomas Braun's avatar Thomas Braun
Browse files

DataBase::simple_query: Output also to error stream before throwing

parent 59a6657e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -483,6 +483,9 @@ void DataBase::simple_query(std::string sql_query, const char *method, DatabaseC
    o << "\n.The query was: " << sql_query << std::ends;
    o2 << "DataBase::" << method << std::ends;

    ERROR_STREAM << o.str();
    ERROR_STREAM << o2.str();

    Tango::Except::throw_exception(DB_SQLError, o.str(), o2.str());
}