Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added better error message, when executeAndFetch fails.

  • Loading branch information...
commit 03a4150be9254f4472842fe8383171a71b0f039b 1 parent 0687e99
@aaberg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/sql2o/Query.java
View
2  src/main/java/org/sql2o/Query.java
@@ -283,7 +283,7 @@ public String getName() {
});
}
catch(SQLException ex){
- throw new Sql2oException("Database error", ex);
+ throw new Sql2oException("Database error: " + ex.getMessage(), ex);
}
finally {
closeConnectionIfNecessary();
Please sign in to comment.
Something went wrong with that request. Please try again.