summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p2pvr/daemon/sqlSelectDeserializer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/p2pvr/daemon/sqlSelectDeserializer.cpp b/p2pvr/daemon/sqlSelectDeserializer.cpp
index 71e320d..8217f1e 100644
--- a/p2pvr/daemon/sqlSelectDeserializer.cpp
+++ b/p2pvr/daemon/sqlSelectDeserializer.cpp
@@ -132,11 +132,12 @@ void
SqlSelectDeserializer::DeserializeObject(Slicer::ModelPartPtr mp)
{
if (!cmd.fetch()) {
- std::invalid_argument("No rows returned");
+ throw std::invalid_argument("No rows returned");
}
DeserializeRow(mp);
if (cmd.fetch()) {
- std::invalid_argument("Too many rows returned");
+ while (cmd.fetch()) ;
+ throw std::invalid_argument("Too many rows returned");
}
}