Permalink
Browse files

einhornsh: Handle non-hash responses

  • Loading branch information...
1 parent 487ff9f commit 9cd5acb8073b70aa17f9d7185190c997721374f9 @gdb gdb committed Sep 27, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/einhornsh
View
@@ -34,7 +34,12 @@ module Einhorn
retry
end
- puts response['message']
+
+ if response.kind_of?(Hash)
+ puts response['message']
+ else
+ puts "Invalid response type #{response.class}: #{response.inspect}"
+ end
end
end

0 comments on commit 9cd5acb

Please sign in to comment.