Skip to content

Commit 1cf0181

Browse files
author
Johannes Hötter
committed
adds print statements to upload
1 parent 58d3623 commit 1cf0181

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

refinery/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ def __monitor_task(self, upload_task_id: str) -> None:
252252
pbar.update(progress)
253253
pbar.set_description_str(desc=task_state, refresh=True)
254254
if task_state == "DONE" or task_state == "FAILED":
255+
if task_state == "DONE":
256+
msg.good("Upload successful.")
257+
else:
258+
msg.fail("Upload failed. Please look into the UI notification center for more details.")
255259
do_monitoring = False
256260
if idx >= 100:
257261
raise exceptions.FileImportError(

0 commit comments

Comments
 (0)