{"action":"created","issue":{"url":"https://api.github.com/repos/dnanexus/dxWDL/issues/152","repository_url":"https://api.github.com/repos/dnanexus/dxWDL","labels_url":"https://api.github.com/repos/dnanexus/dxWDL/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/dnanexus/dxWDL/issues/152/comments","events_url":"https://api.github.com/repos/dnanexus/dxWDL/issues/152/events","html_url":"https://github.com/dnanexus/dxWDL/issues/152","id":339975801,"node_id":"MDU6SXNzdWUzMzk5NzU4MDE=","number":152,"title":"Job error reporting","user":{"login":"dpark01","id":8513746,"node_id":"MDQ6VXNlcjg1MTM3NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/8513746?v=4","gravatar_id":"","url":"https://api.github.com/users/dpark01","html_url":"https://github.com/dpark01","followers_url":"https://api.github.com/users/dpark01/followers","following_url":"https://api.github.com/users/dpark01/following{/other_user}","gists_url":"https://api.github.com/users/dpark01/gists{/gist_id}","starred_url":"https://api.github.com/users/dpark01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpark01/subscriptions","organizations_url":"https://api.github.com/users/dpark01/orgs","repos_url":"https://api.github.com/users/dpark01/repos","events_url":"https://api.github.com/users/dpark01/events{/privacy}","received_events_url":"https://api.github.com/users/dpark01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-10T19:25:30Z","updated_at":"2018-07-19T17:05:07Z","closed_at":null,"author_association":"NONE","body":"Out of curiosity, is there a mechanism for the code within a WDL task to provide some descriptive string upon failure that gets somehow moved into a `job_error.json` file or otherwise gets reported on by the DNAnexus UI (instead of \"Please consult the job log\")? The native workflows seem to do something like [this](https://github.com/dnanexus/viral-ngs/blob/dnanexus/assembly/viral-ngs-assembly-scaffolding/src/code.sh#L36) but I'm wondering if there's a way to do that within a WDL instead. It's fine if the solution isn't feature-portable to Cromwell, et al (as long as it still compiles there)."},"comment":{"url":"https://api.github.com/repos/dnanexus/dxWDL/issues/comments/406347634","html_url":"https://github.com/dnanexus/dxWDL/issues/152#issuecomment-406347634","issue_url":"https://api.github.com/repos/dnanexus/dxWDL/issues/152","id":406347634,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM0NzYzNA==","user":{"login":"jtratner","id":1598379,"node_id":"MDQ6VXNlcjE1OTgzNzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1598379?v=4","gravatar_id":"","url":"https://api.github.com/users/jtratner","html_url":"https://github.com/jtratner","followers_url":"https://api.github.com/users/jtratner/followers","following_url":"https://api.github.com/users/jtratner/following{/other_user}","gists_url":"https://api.github.com/users/jtratner/gists{/gist_id}","starred_url":"https://api.github.com/users/jtratner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtratner/subscriptions","organizations_url":"https://api.github.com/users/jtratner/orgs","repos_url":"https://api.github.com/users/jtratner/repos","events_url":"https://api.github.com/users/jtratner/events{/privacy}","received_events_url":"https://api.github.com/users/jtratner/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T17:05:07Z","updated_at":"2018-07-19T17:05:07Z","author_association":"NONE","body":"@dpark01 - this actually is already available (if you want to do something custom to the platform), you just have to write out to `job_error.json` in your home directory. \r\n\r\n```\r\nworkflow show_error {\r\n    call make_error {}\r\n}\r\n\r\ntask make_error {\r\n    command <<<\r\n        echo '{\"error\": {\"type\": \"AppError\", \"message\": \"x must be at least 2\"}}' > job_error.json\r\n        exit 1\r\n    >>>\r\n}\r\n```"}}
{"actor":{"display_login":"jtratner"}}