Skip to content

Commit

Permalink
fixed messages in exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: pietfried <pietgoempel@gmail.com>
  • Loading branch information
Pietfried committed Oct 2, 2023
1 parent 4aba832 commit bfdc1ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ocpp/v201/database_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ size_t DatabaseHandler::authorization_cache_get_binary_size() {
SQLiteStatement stmt(this->db, sql);

if (stmt.step() != SQLITE_ROW) {
throw std::runtime_error("Could not get local list count from database");
throw std::runtime_error("Could not get authorization cache binary size from database");
}

return stmt.column_int(0);
} catch (const std::exception& e) {
throw std::runtime_error("Could not get availability from database");
throw std::runtime_error("Could not get authorization cache binary size from database");
}
}

Expand Down Expand Up @@ -287,7 +287,7 @@ int32_t DatabaseHandler::get_local_authorization_list_number_of_entries() {

return stmt.column_int(0);
} catch (const std::exception& e) {
throw std::runtime_error("Could not get availability from database");
throw std::runtime_error("Could not get local list count from database");
}
}

Expand Down

0 comments on commit bfdc1ea

Please sign in to comment.