projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
improve error message when crunch-job is not found
[arvados.git]
/
services
/
api
/
script
/
crunch-dispatch.rb
diff --git
a/services/api/script/crunch-dispatch.rb
b/services/api/script/crunch-dispatch.rb
index a9ca4bebc40098379466d09d62930c1fd8724a7e..12f4e4feeccf28873ab726dedd3d779102a7ad38 100755
(executable)
--- a/
services/api/script/crunch-dispatch.rb
+++ b/
services/api/script/crunch-dispatch.rb
@@
-126,6
+126,10
@@
class Dispatcher
cmd_args << '--job'
cmd_args << job.uuid
+ if cmd_args[0] == ''
+ raise "No CRUNCH_JOB_BIN env var, and crunch-job not in path."
+ end
+
commit = Commit.where(sha1: job.script_version).first
if commit
cmd_args << '--git-dir'