Skip to content

Commit fff2859

Browse files
committed
Warn to install ostruct if json couldn't load it
1 parent cdbcbd0 commit fff2859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/json/generic_object.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
begin
33
require 'ostruct'
44
rescue LoadError
5+
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
56
end
67

78
module JSON

0 commit comments

Comments
 (0)