Skip to content

Commit 7a080f5

Browse files
ponyisiBenGalewsky
authored andcommitted
Make sure that request ID and sample name are in error output (following Errors from ServiceX that aren't JSON do not tell us much #61)
1 parent cea2879 commit 7a080f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

servicex/query_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def transform_complete(task: Task):
197197
expandable_progress.refresh()
198198
if task.exception():
199199
logger.error(
200-
"ServiceX Exception", exc_info=task.exception()
200+
f"ServiceX Exception for request ID {self.request_id} ({self.title})\"",
201+
exc_info=task.exception()
201202
)
202203
self.cache.delete_record_by_request_id(self.request_id)
203204
if download_files_task:

0 commit comments

Comments
 (0)