{"action":"opened","issue":{"url":"https://api.github.com/repos/01org/widl-nan/issues/64","repository_url":"https://api.github.com/repos/01org/widl-nan","labels_url":"https://api.github.com/repos/01org/widl-nan/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/01org/widl-nan/issues/64/comments","events_url":"https://api.github.com/repos/01org/widl-nan/issues/64/events","html_url":"https://github.com/01org/widl-nan/issues/64","id":179720133,"number":64,"title":"[Bug]Use WIDL NAN as Node.js Module-- When writeToDir option was null, cannot catch error","user":{"login":"zhaoming0","id":19921092,"avatar_url":"https://avatars.githubusercontent.com/u/19921092?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaoming0","html_url":"https://github.com/zhaoming0","followers_url":"https://api.github.com/users/zhaoming0/followers","following_url":"https://api.github.com/users/zhaoming0/following{/other_user}","gists_url":"https://api.github.com/users/zhaoming0/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaoming0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaoming0/subscriptions","organizations_url":"https://api.github.com/users/zhaoming0/orgs","repos_url":"https://api.github.com/users/zhaoming0/repos","events_url":"https://api.github.com/users/zhaoming0/events{/privacy}","received_events_url":"https://api.github.com/users/zhaoming0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T09:15:05Z","updated_at":"2016-09-28T09:15:05Z","closed_at":null,"body":"**Reproduce steps:**\r\n`const g = require('widl-nan').generator;\r\n  var tmpdir = null;\r\nPromise.all([\r\n  g.addFile('../idl/object-recognition/object-recognition.widl')\r\n  ]).then(function () {\r\n    g.compile();\r\n    g.writeToDir(tmpdir);\r\n  }).catch(e => {\r\n    console.log(e);\r\n  });`\r\n**Fail code:**\r\nwidl-nan/index.js\r\n`var dirNameSkeleton = path.join(dirName, 'dont-build');`\r\n\r\nCode cannot handle option was null\r\nSo, we need add code check receive option? or print some error log?\r\n"}}
{"actor":{"display_login":"zhaoming0"}}