Skip to content

Commit

Permalink
Improve error message for image pull time-out for Singularity/Apptain…
Browse files Browse the repository at this point in the history
…er/Charliecloud (#4974) [ci fast]



Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
  • Loading branch information
marcodelapierre committed May 6, 2024
1 parent aa9e127 commit 73015fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -239,7 +239,7 @@ class CharliecloudCache {
def status = proc.exitValue()
if( status != 0 ) {
consumer.join()
def msg = "Charliecloud failed to pull image\n command: $cmd\n status : $status\n message:\n"
def msg = "Charliecloud failed to pull image\n command: $cmd\n status : $status\n hint : Try and increase charliecloud.pullTimeout in the config (current is \"${pullTimeout}\")\n message:\n"
msg += err.toString().trim().indent(' ')
throw new IllegalStateException(msg)
}
Expand Down
Expand Up @@ -303,7 +303,7 @@ class SingularityCache {
def status = proc.exitValue()
if( status != 0 ) {
consumer.join()
def msg = "Failed to pull singularity image\n command: $cmd\n status : $status\n message:\n"
def msg = "Failed to pull singularity image\n command: $cmd\n status : $status\n hint : Try and increase ${binaryName}.pullTimeout in the config (current is \"${pullTimeout}\")\n message:\n"
msg += err.toString().trim().indent(' ')
throw new IllegalStateException(msg)
}
Expand Down

0 comments on commit 73015fb

Please sign in to comment.