Skip to content

Commit

Permalink
[JENKINS-14964] fix error text to suggest the correct URL
Browse files Browse the repository at this point in the history
  • Loading branch information
agudian committed Feb 3, 2014
1 parent cb565fb commit c6e3712
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -505,13 +505,13 @@ public void doRun(StaplerRequest req, StaplerResponse rsp, @QueryParameter(fixEm
}

if (StringUtils.isEmpty(id)) {
throw new RuntimeException("Please specify a script id. Use ./executePlain/<yourScriptId>");
throw new RuntimeException("Please specify a script id. Use /scriptler/run/<yourScriptId>");
}

Script tempScript = ScriptHelper.getScript(id, true);

if (tempScript == null) {
throw new RuntimeException("Unknown script: " + id + ". Use ./executePlain/<yourScriptId>");
throw new RuntimeException("Unknown script: " + id + ". Use /scriptler/run/<yourScriptId>");
}

final boolean isAdmin = Jenkins.getInstance().getACL().hasPermission(Jenkins.ADMINISTER);
Expand Down

0 comments on commit c6e3712

Please sign in to comment.