{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/1086","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/1086/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/1086/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/1086/events","html_url":"https://github.com/segmentio/nightmare/issues/1086","id":221584270,"number":1086,"title":"No error when Nightmare fails due to wrong Electron executable format (platform)","user":{"login":"lzrski","id":1684495,"avatar_url":"https://avatars1.githubusercontent.com/u/1684495?v=4","gravatar_id":"","url":"https://api.github.com/users/lzrski","html_url":"https://github.com/lzrski","followers_url":"https://api.github.com/users/lzrski/followers","following_url":"https://api.github.com/users/lzrski/following{/other_user}","gists_url":"https://api.github.com/users/lzrski/gists{/gist_id}","starred_url":"https://api.github.com/users/lzrski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzrski/subscriptions","organizations_url":"https://api.github.com/users/lzrski/orgs","repos_url":"https://api.github.com/users/lzrski/repos","events_url":"https://api.github.com/users/lzrski/events{/privacy}","received_events_url":"https://api.github.com/users/lzrski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-13T14:41:47Z","updated_at":"2017-08-23T17:32:26Z","closed_at":"2017-08-23T17:32:24Z","body":"## Steps to reproduce:\r\n\r\n1.  Have some kind of virtualisation (VM, Docker for Mac, etc.) with shared project folder.\r\n\r\n1.  Install nightmare in your host OS (say OS X):\r\n\r\n    ```sh\r\n    npm install nightmare\r\n    ```\r\n\r\n1.  Prepare following test script:\r\n\r\n    ```javascript\r\n    \"use strict\";\r\n\r\n    const Nightmare = require(\"nightmare\");\r\n\r\n    const browser = new Nightmare;\r\n\r\n    console.log(\"Start\");\r\n\r\n    browser\r\n      .goto(\"https://www.scrambled.com/\")\r\n      .title()\r\n      .end(console.log)\r\n      .catch(console.error);\r\n    ```\r\n\r\n    and save it `arch.js`.\r\n\r\n1.  Run it:\r\n\r\n    ```\r\n    $ node arch.js \r\n    Start\r\n    Scrambled - Smart content, delicious results - Food Film & Photography\r\n    ```\r\n\r\n1.  Now run it in your virtual machine with different platform (say Linux):\r\n\r\n    ```\r\n    $ xvfb-run node arch.js\r\n    Start\r\n    ```\r\n\r\n## Expected result:\r\n\r\nI'd like to get some kind of error that I could handle. \r\n\r\nI know what's wrong, but it's not very friendly, especially for colleagues who are not very experienced with Node.js. In local development it can happen quite often that you run dependency installation on your host instead of VM or the other way around. It can be confusing and time wasting."},"comment":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/comments/324407075","html_url":"https://github.com/segmentio/nightmare/issues/1086#issuecomment-324407075","issue_url":"https://api.github.com/repos/segmentio/nightmare/issues/1086","id":324407075,"user":{"login":"casesandberg","id":4633636,"avatar_url":"https://avatars0.githubusercontent.com/u/4633636?v=4","gravatar_id":"","url":"https://api.github.com/users/casesandberg","html_url":"https://github.com/casesandberg","followers_url":"https://api.github.com/users/casesandberg/followers","following_url":"https://api.github.com/users/casesandberg/following{/other_user}","gists_url":"https://api.github.com/users/casesandberg/gists{/gist_id}","starred_url":"https://api.github.com/users/casesandberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casesandberg/subscriptions","organizations_url":"https://api.github.com/users/casesandberg/orgs","repos_url":"https://api.github.com/users/casesandberg/repos","events_url":"https://api.github.com/users/casesandberg/events{/privacy}","received_events_url":"https://api.github.com/users/casesandberg/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T17:32:25Z","updated_at":"2017-08-23T17:32:25Z","body":"Using `DEBUG=*` from the [debugging section](https://github.com/segmentio/nightmare#debugging) does tell you when there is a problem like this."}}
{"actor":{"display_login":"casesandberg"}}