Changeset: 9370976052fc for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9370976052fc
Modified Files:
        testing/sqllogictest.py
Branch: Aug2024
Log Message:

Improve error reporting.


diffs (15 lines):

diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py
--- a/testing/sqllogictest.py
+++ b/testing/sqllogictest.py
@@ -303,8 +303,9 @@ class SQLLogic:
                             if expected_err_msg.lower() == 
err_msg_received.lower():
                                 return result
                     msg = "statement was expected to fail with" \
-                            + (" error code {}".format(expected_err_code) if 
expected_err_code else '')\
-                            + (", error message 
{}".format(str(expected_err_msg)) if expected_err_msg else '')
+                            + (f" error code {expected_err_code}" if 
expected_err_code else '') \
+                            + (f", error message {repr(expected_err_msg)}" if 
expected_err_msg else '') \
+                            + f", received code {err_code_received}, message 
{repr(err_msg_received)}"
                     self.query_error(err_stmt or statement, str(msg), str(e))
                 return result
         except ConnectionError as e:
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to