diff --git a/arkindex/project/tests/__init__.py b/arkindex/project/tests/__init__.py
index 457a105ec04865a3a17eb3fd34482757cdbd91a3..eb0b476568ce4c5b36910a93f7064ada39b515e5 100644
--- a/arkindex/project/tests/__init__.py
+++ b/arkindex/project/tests/__init__.py
@@ -74,7 +74,8 @@ class _AssertExactQueriesContext(CaptureQueriesContext):
             else:
                 raise AssertionError(
                     f'Could not assert on SQL queries; the file at {self.path} did not exist. '
-                    'A file has been created with the current SQL queries, please check it manually.'
+                    'A file has been created with the current SQL queries, please check it manually.\n'
+                    f'Parameters: {self.params!r}'
                 )
 
         # Ignore newlines in the expected SQL, otherwise the reformatting might have duplicate line breaks