lib/inch/language/elixir/provider/reader/parser.rb in inch-0.6.0.rc5 vs lib/inch/language/elixir/provider/reader/parser.rb in inch-0.6.0.rc6

- old
+ new

@@ -23,9 +23,10 @@ # @param dir [String] directory # @param config [Inch::Config::Codebase] configuration for codebase # @return [void] def parse(dir, config) + raise "Directory does not exist: #{dir}" if !File.exist?(dir) Dir.chdir(dir) do parse_objects(config.included_files, config.excluded_files, config.read_dump_file) end end