diff --git a/src/bloqade/task/cloud_base.py b/src/bloqade/task/cloud_base.py index 6197adb86..4b0b7fb06 100644 --- a/src/bloqade/task/cloud_base.py +++ b/src/bloqade/task/cloud_base.py @@ -1,6 +1,7 @@ from collections import OrderedDict import datetime import json +import os import sys import numpy as np import traceback @@ -232,6 +233,7 @@ def submit(self, shuffle_submit_order: bool = True) -> CloudBatchResultSubType: future_file = f"partial-batch-future-{time_stamp}.json" error_file = f"partial-batch-errors-{time_stamp}.json" + cwd = os.get_cwd() cloud_batch_result.save_json(future_file, indent=2) with open(error_file, "w") as f: @@ -240,7 +242,8 @@ def submit(self, shuffle_submit_order: bool = True) -> CloudBatchResultSubType: raise CloudBatchTask.SubmissionException( "One or more error(s) occured during submission, please see " "the following files for more information:\n" - f" - {future_file}\n - {error_file}\n" + f" - {os.path.join(cwd, future_file)}\n" + f" - {os.path.join(cwd, error_file)}\n" ) else: