lib/inch/language/javascript/provider/jsdoc/parser.rb in inch-0.6.0.rc5 vs lib/inch/language/javascript/provider/jsdoc/parser.rb in inch-0.6.0.rc6

- old
+ new

@@ -26,9 +26,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