{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/1123","repository_url":"https://api.github.com/repos/rstudio/shiny","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/1123/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/1123/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/1123/events","html_url":"https://github.com/rstudio/shiny/issues/1123","id":137959641,"number":1123,"title":"Suppress error messages","user":{"login":"jcheng5","id":129551,"avatar_url":"https://avatars.githubusercontent.com/u/129551?v=3","gravatar_id":"","url":"https://api.github.com/users/jcheng5","html_url":"https://github.com/jcheng5","followers_url":"https://api.github.com/users/jcheng5/followers","following_url":"https://api.github.com/users/jcheng5/following{/other_user}","gists_url":"https://api.github.com/users/jcheng5/gists{/gist_id}","starred_url":"https://api.github.com/users/jcheng5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcheng5/subscriptions","organizations_url":"https://api.github.com/users/jcheng5/orgs","repos_url":"https://api.github.com/users/jcheng5/repos","events_url":"https://api.github.com/users/jcheng5/events{/privacy}","received_events_url":"https://api.github.com/users/jcheng5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T18:56:18Z","updated_at":"2016-03-22T18:08:37Z","closed_at":null,"body":"For security reasons, have an option to prevent any raw error messages from getting to the client--make them sanitized. Raw error messages can contain file paths, internal hostnames, argument values, and sometimes even source code snippets.\r\n\r\n(Let the user throw \"trusted\" exceptions and turn all other exceptions into generic exceptions?)\r\n\r\nCurrently you can work around this by throwing a generic exception in `options(shiny.error = function() { ... })` but that means even logging doesn't occur (you can't get the error from within shiny.error--seems perverse, but it's modeled on `options(error)`).\r\n\r\nWe should at least have shiny.error functions with at least one argument, be passed the error. This would allow a complete workaround.\r\n\r\nWe should also consider building our own version of this and sticking it directly into our server products, so you can opt into this behavior across an entire server (or override on a per-app basis) with a config file.\r\n\r\nRef: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/shiny-discuss/FyMGa2R_Mgs/FNyusgdxBgAJ\r\n\r\ncc @benb111"},"comment":{"url":"https://api.github.com/repos/rstudio/shiny/issues/comments/199944373","html_url":"https://github.com/rstudio/shiny/issues/1123#issuecomment-199944373","issue_url":"https://api.github.com/repos/rstudio/shiny/issues/1123","id":199944373,"user":{"login":"jcheng5","id":129551,"avatar_url":"https://avatars.githubusercontent.com/u/129551?v=3","gravatar_id":"","url":"https://api.github.com/users/jcheng5","html_url":"https://github.com/jcheng5","followers_url":"https://api.github.com/users/jcheng5/followers","following_url":"https://api.github.com/users/jcheng5/following{/other_user}","gists_url":"https://api.github.com/users/jcheng5/gists{/gist_id}","starred_url":"https://api.github.com/users/jcheng5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcheng5/subscriptions","organizations_url":"https://api.github.com/users/jcheng5/orgs","repos_url":"https://api.github.com/users/jcheng5/repos","events_url":"https://api.github.com/users/jcheng5/events{/privacy}","received_events_url":"https://api.github.com/users/jcheng5/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T18:08:37Z","updated_at":"2016-03-22T18:08:37Z","body":"Places to test: downloadHandler, ui.R itself"}}