X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..0e2f3e506566b1ceb54bd764d3f32c004e45f8b3:/apps/workbench/app/models/proxy_work_unit.rb diff --git a/apps/workbench/app/models/proxy_work_unit.rb b/apps/workbench/app/models/proxy_work_unit.rb index f570563b75..adf0bd7d67 100644 --- a/apps/workbench/app/models/proxy_work_unit.rb +++ b/apps/workbench/app/models/proxy_work_unit.rb @@ -255,7 +255,9 @@ class ProxyWorkUnit < WorkUnit if state_label == 'Complete' resp << "completed in " elsif state_label == 'Failed' - resp << "failed after " + resp << "failed after " + elsif state_label == 'Cancelled' + resp << "was cancelled after " else resp << "has been active for " end @@ -276,7 +278,11 @@ class ProxyWorkUnit < WorkUnit end if is_failed? - resp << " Check the Log tab for more detail about why it failed." + if runtime_status.andand[:error] + resp << " Check the error information below." + else + resp << " Check the Log tab for more detail about why it failed." + end end resp << "

"