diff options
author | David Robillard <d@drobilla.net> | 2007-04-11 03:43:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-11 03:43:58 +0000 |
commit | 6a5d5a24eba65b275e099c5da7c830a09e39fcf8 (patch) | |
tree | fac80a5c3b3fb24c101dc837019dd74cf9e87602 /src | |
parent | 15499616e93c99ed9836461e0ef4b1b76ad8933d (diff) | |
download | raul-6a5d5a24eba65b275e099c5da7c830a09e39fcf8.tar.gz raul-6a5d5a24eba65b275e099c5da7c830a09e39fcf8.tar.bz2 raul-6a5d5a24eba65b275e099c5da7c830a09e39fcf8.zip |
Print out failed queries, for debugging.
git-svn-id: http://svn.drobilla.net/lad/raul@436 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/RDFQuery.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RDFQuery.cpp b/src/RDFQuery.cpp index 2074d50..90f6c35 100644 --- a/src/RDFQuery.cpp +++ b/src/RDFQuery.cpp @@ -20,6 +20,8 @@ #include <rasqal.h> #include "raul/RDFQuery.h" +using namespace std; + namespace Raul { @@ -39,8 +41,10 @@ RDFQuery::run(const Glib::ustring base_uri_str) const rasqal_query_results* results = rasqal_query_execute(rq); - if (!results) + if (!results) { + cerr << "Failed Query was:" << endl << _query << endl; return result; /* Return an empty Results */ + } while (!rasqal_query_results_finished(results)) { |