lib/legion/json.rb in legion-json-0.1.1 vs lib/legion/json.rb in legion-json-0.1.2

- old
+ new

@@ -28,11 +28,11 @@ # # @param string [String] # @return [Object] def load(string) @parser.load(string) - rescue StandardError => error - raise Legion::JSON::ParseError.build(error, string) + rescue StandardError => e + raise Legion::JSON::ParseError.build(e, string) end # Dump (generate) a JSON string from a Ruby object. # # @param object [Object]