{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/358","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/358/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/358/events","html_url":"https://github.com/tgriesser/knex/issues/358","id":37330233,"number":358,"title":"Error when running knex migrate:make","user":{"login":"garrett-gottlieb","id":1219054,"avatar_url":"https://avatars.githubusercontent.com/u/1219054?v=3","gravatar_id":"","url":"https://api.github.com/users/garrett-gottlieb","html_url":"https://github.com/garrett-gottlieb","followers_url":"https://api.github.com/users/garrett-gottlieb/followers","following_url":"https://api.github.com/users/garrett-gottlieb/following{/other_user}","gists_url":"https://api.github.com/users/garrett-gottlieb/gists{/gist_id}","starred_url":"https://api.github.com/users/garrett-gottlieb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrett-gottlieb/subscriptions","organizations_url":"https://api.github.com/users/garrett-gottlieb/orgs","repos_url":"https://api.github.com/users/garrett-gottlieb/repos","events_url":"https://api.github.com/users/garrett-gottlieb/events{/privacy}","received_events_url":"https://api.github.com/users/garrett-gottlieb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-08T03:20:59Z","updated_at":"2015-02-01T23:42:19Z","closed_at":"2014-07-08T10:02:01Z","body":"```\r\n~/S/p/s/scripts> knex --debug migrate:make my_migration\r\n\r\n/usr/local/share/npm/lib/node_modules/knex/lib/bin/cli.js:89\r\n      var ext = (argv.x || env.configPath.split('.').pop()).toLowerCase();\r\n                                          ^\r\nTypeError: Cannot call method 'split' of null\r\n    at Command.<anonymous> (/usr/local/share/npm/lib/node_modules/knex/lib/bin/cli.js:89:43)\r\n    at Command.<anonymous> (/usr/local/share/npm/lib/node_modules/knex/node_modules/commander/index.js:249:8)\r\n    at Command.emit (events.js:98:17)\r\n    at Command.parseArgs (/usr/local/share/npm/lib/node_modules/knex/node_modules/commander/index.js:478:12)\r\n    at Command.parse (/usr/local/share/npm/lib/node_modules/knex/node_modules/commander/index.js:370:21)\r\n    at Liftoff.invoke (/usr/local/share/npm/lib/node_modules/knex/lib/bin/cli.js:128:13)\r\n    at Liftoff.launch (/usr/local/share/npm/lib/node_modules/knex/node_modules/liftoff/index.js:140:6)\r\n    at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/knex/lib/bin/cli.js:27:5)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/72391812","html_url":"https://github.com/tgriesser/knex/issues/358#issuecomment-72391812","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/358","id":72391812,"user":{"login":"blaskovicz","id":10687433,"avatar_url":"https://avatars.githubusercontent.com/u/10687433?v=3","gravatar_id":"","url":"https://api.github.com/users/blaskovicz","html_url":"https://github.com/blaskovicz","followers_url":"https://api.github.com/users/blaskovicz/followers","following_url":"https://api.github.com/users/blaskovicz/following{/other_user}","gists_url":"https://api.github.com/users/blaskovicz/gists{/gist_id}","starred_url":"https://api.github.com/users/blaskovicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaskovicz/subscriptions","organizations_url":"https://api.github.com/users/blaskovicz/orgs","repos_url":"https://api.github.com/users/blaskovicz/repos","events_url":"https://api.github.com/users/blaskovicz/events{/privacy}","received_events_url":"https://api.github.com/users/blaskovicz/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T23:42:19Z","updated_at":"2015-02-01T23:42:19Z","body":"This was my issue as well.\r\n\r\nWould it be possible to make a pre-run check and more helpful error message?"}}