aboutsummaryrefslogtreecommitdiff
path: root/player/tasks.f90
diff options
context:
space:
mode:
Diffstat (limited to 'player/tasks.f90')
-rw-r--r--player/tasks.f907
1 files changed, 6 insertions, 1 deletions
diff --git a/player/tasks.f90 b/player/tasks.f90
index b0f2cc1..efc0fe4 100644
--- a/player/tasks.f90
+++ b/player/tasks.f90
@@ -152,7 +152,7 @@ contains
function upload(url, source_filename) result(res)
use config, only: token, captain, identity
- use gemini_protocol, only: titan_post_url, STATUS_SUCCESS
+ use gemini_protocol, only: titan_post_url, STATUS_SUCCESS, STATUS_TEMPFAIL
implicit none
logical::res
@@ -211,6 +211,11 @@ contains
Print *, "Writing "//trim(mod_url)
istatus = titan_post_url(mod_url, unit_number, file_size, trim(identity)//":"//trim(token))
Print *, "Response code from server: ", istatus
+
+ if(istatus == STATUS_TEMPFAIL) then
+ Print *, "Server failed to finish handling file - temporary failure"
+ end if
+
res = (istatus == STATUS_SUCCESS)
close(unit_number)
else