{"action":"opened","issue":{"url":"https://api.github.com/repos/tsqllint/tsqllint/issues/38","repository_url":"https://api.github.com/repos/tsqllint/tsqllint","labels_url":"https://api.github.com/repos/tsqllint/tsqllint/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tsqllint/tsqllint/issues/38/comments","events_url":"https://api.github.com/repos/tsqllint/tsqllint/issues/38/events","html_url":"https://github.com/tsqllint/tsqllint/issues/38","id":254470333,"number":38,"title":"Crash when given a path to a non-existent directory","user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars3.githubusercontent.com/u/67512?v=4","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T21:15:20Z","updated_at":"2017-08-31T21:15:20Z","closed_at":null,"author_association":"OWNER","body":"```\r\n$ tsqllint C:\\BogusDir\\BogusFile.sql\r\n```\r\n\r\nA Windows application crash dialog box opens, the following is on the console:\r\n\r\n```\r\nUnhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\\BogusDir'.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileSystemEnumerableIterator`1.CommonInit()\r\n   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)\r\n   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)\r\n   at System.IO.Abstractions.DirectoryWrapper.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)\r\n   at TSQLLINT_LIB.Parser.SqlFileProcessor.ProcessWildCard(String path) in d:\\git\\tsqllint\\TSQLLINT_LIB\\Parser\\SqlFileProcessor.cs:line 109\r\n   at TSQLLINT_LIB.Parser.SqlFileProcessor.ProcessPath(String path) in d:\\git\\tsqllint\\TSQLLINT_LIB\\Parser\\SqlFileProcessor.cs:line 58\r\n   at TSQLLINT_LIB.Parser.SqlFileProcessor.ProcessList(List`1 paths) in d:\\git\\tsqllint\\TSQLLINT_LIB\\Parser\\SqlFileProcessor.cs:line 129\r\n   at TSQLLINT_CONSOLE.LintingHandler.Lint()\r\n   at TSQLLINT_CONSOLE.Application.Run()\r\n   at TSQLLINT_CONSOLE.Program.Main(String[] args)\r\n```"}}
{"actor":{"display_login":"dougwilson"}}