Skip to content

Commit b73cc33

Browse files
committed
more verbose message about job logs
1 parent 0b691ed commit b73cc33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openeo/rest/job.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def soft_error(message: str):
204204
poll_interval = min(1.25 * poll_interval, max_poll_interval)
205205

206206
if status != "finished":
207-
print("Logs for failed job:")
207+
print("Your batch job failed. Logs can be found online in an openEO editor, or you can get them with 'connection.job('my_job_id_123').logs()'")
208+
print("Printing logs:")
208209
print(self.logs())
209210
raise JobFailedException("Batch job {i} didn't finish properly. Status: {s} (after {t}).".format(
210211
i=self.job_id, s=status, t=elapsed()

0 commit comments

Comments
 (0)