{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-tools/issues/439","repository_url":"https://api.github.com/repos/firebase/firebase-tools","labels_url":"https://api.github.com/repos/firebase/firebase-tools/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-tools/issues/439/comments","events_url":"https://api.github.com/repos/firebase/firebase-tools/issues/439/events","html_url":"https://github.com/firebase/firebase-tools/issues/439","id":252234976,"number":439,"title":"Firebase outputs generic error message rather than actual error message","user":{"login":"code-tree","id":11289719,"avatar_url":"https://avatars3.githubusercontent.com/u/11289719?v=4","gravatar_id":"","url":"https://api.github.com/users/code-tree","html_url":"https://github.com/code-tree","followers_url":"https://api.github.com/users/code-tree/followers","following_url":"https://api.github.com/users/code-tree/following{/other_user}","gists_url":"https://api.github.com/users/code-tree/gists{/gist_id}","starred_url":"https://api.github.com/users/code-tree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-tree/subscriptions","organizations_url":"https://api.github.com/users/code-tree/orgs","repos_url":"https://api.github.com/users/code-tree/repos","events_url":"https://api.github.com/users/code-tree/events{/privacy}","received_events_url":"https://api.github.com/users/code-tree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T10:31:12Z","updated_at":"2017-08-25T18:01:23Z","closed_at":null,"body":"### Version info\r\n3.9.2\r\n<!-- Run \"firebase --version\", and ensure that you are using the latest version of firebase-tools. You can check what the latest version is at https://github.com/firebase/firebase-tools/releases. -->\r\n\r\n\r\n### Steps to reproduce\r\nMake a command fail at the network level\r\n<!-- Provide the steps needed to reproduce the issue. Please include exact commands. -->\r\n\r\n\r\n### Expected behavior\r\nUseful error message is displayed\r\n<!-- What is the expected behavior? -->\r\n\r\n\r\n### Actual behavior\r\nA generic error message is displayed, hiding the real error.\r\n\r\nYou can see this [here](https://github.com/firebase/firebase-tools/blob/3583b4ae61ec1954815e9c47f7cb9be1aa6585a1/commands/database-set.js#L54) where the actual error stored in `err` is not reported to the user.\r\n\r\n<!-- Run the command with --debug flag, and include the logs below. -->\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-tools/issues/comments/324995016","html_url":"https://github.com/firebase/firebase-tools/issues/439#issuecomment-324995016","issue_url":"https://api.github.com/repos/firebase/firebase-tools/issues/439","id":324995016,"user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars0.githubusercontent.com/u/1022?v=4","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"created_at":"2017-08-25T18:01:23Z","updated_at":"2017-08-25T18:01:23Z","body":"We try to avoid spewing arbitrary stack traces and err on the side of caution. It may be worth investigating adding network errors to the whitelist of errors we pass through, though, as well as debug logging the actual error."}}
{"actor":{"display_login":"mbleigh"}}