lib/rginger/parser.rb in rginger-0.1 vs lib/rginger/parser.rb in rginger-0.1.1
- old
+ new
@@ -107,14 +107,14 @@
warn "redirected to #{location}"
# Recursive method call
get_json(location, limit - 1)
else
# Error
- puts [uri.to_s, response.value].join(" : ")
+ throw [uri.to_s, response.value].join(" : ")
end
rescue => e
# Error
- puts [uri.to_s, e.class, e].join(" : ")
+ throw [uri.to_s, e.class, e].join(" : ")
end
end
end