{"action":"opened","issue":{"url":"https://api.github.com/repos/buildkite/agent/issues/416","repository_url":"https://api.github.com/repos/buildkite/agent","labels_url":"https://api.github.com/repos/buildkite/agent/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/buildkite/agent/issues/416/comments","events_url":"https://api.github.com/repos/buildkite/agent/issues/416/events","html_url":"https://github.com/buildkite/agent/issues/416","id":193026256,"number":416,"title":"Misleading error when command eval disabled","user":{"login":"yeungda-rea","id":13476365,"avatar_url":"https://avatars.githubusercontent.com/u/13476365?v=3","gravatar_id":"","url":"https://api.github.com/users/yeungda-rea","html_url":"https://github.com/yeungda-rea","followers_url":"https://api.github.com/users/yeungda-rea/followers","following_url":"https://api.github.com/users/yeungda-rea/following{/other_user}","gists_url":"https://api.github.com/users/yeungda-rea/gists{/gist_id}","starred_url":"https://api.github.com/users/yeungda-rea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeungda-rea/subscriptions","organizations_url":"https://api.github.com/users/yeungda-rea/orgs","repos_url":"https://api.github.com/users/yeungda-rea/repos","events_url":"https://api.github.com/users/yeungda-rea/events{/privacy}","received_events_url":"https://api.github.com/users/yeungda-rea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T03:35:39Z","updated_at":"2016-12-02T03:35:39Z","closed_at":null,"body":"We are getting a number of questions where people are mistyping their script paths and being confused by a message about command eval. Here's an example:\r\n\r\n**Given** I have an agent command eval disabled\r\n**And** I have a repo with the script `bar`\r\n**And** I have a pipeline step with the mistyped command `baz`\r\n**When** my agent runs the step\r\n**Then** my step fails with the message:\r\n> \"This agent is not allowed to evaluate console commands. To allow this, re-run this agent without the `--no-command-eval` option, or specify a script within your repository to run instead (such as scripts/test.sh).\"\r\n\r\nA message such as this would be much easier to diagnose:\r\n\r\n> no such file: ./baz\r\n> This agent is not allowed to evaluate console commands. To allow this, re-run this agent without the `--no-command-eval` option, or specify a script within your repository to run instead (such as scripts/test.sh)."}}
{"actor":{"display_login":"yeungda-rea"}}