YUKI Hiroshi
null+****@clear*****
Wed Feb 12 19:46:15 JST 2014
YUKI Hiroshi 2014-02-12 19:46:15 +0900 (Wed, 12 Feb 2014) New Revision: 3c6acce1aad109f82be700b019b619f491460840 https://github.com/droonga/fluent-plugin-droonga/commit/3c6acce1aad109f82be700b019b619f491460840 Message: Report missing catalog file error Modified files: lib/droonga/catalog_loader.rb Modified: lib/droonga/catalog_loader.rb (+2 -0) =================================================================== --- lib/droonga/catalog_loader.rb 2014-02-12 19:40:07 +0900 (de5c417) +++ lib/droonga/catalog_loader.rb 2014-02-12 19:46:15 +0900 (e99114e) @@ -28,6 +28,8 @@ module Droonga JSON.parse(file.read) end Catalog::Version1.new(data, @path) + rescue Errno::ENOENT => error + raise Error.new("Missing catalog file #{@path}") rescue JSON::ParserError => error raise Error.new("Syntax error in #{@path}:\n#{error.to_s}") end -------------- next part -------------- HTML����������������������������... 다운로드