lib/gzr/modules/model.rb in gazer-0.3.8 vs lib/gzr/modules/model.rb in gazer-0.3.9

- old
+ new

@@ -63,7 +63,17 @@ say_error e raise end end + def update_model(model_name,body) + begin + return @sdk.update_lookml_model(model_name,body)&.to_attrs + rescue LookerSDK::Error => e + say_error "Error running update_lookml_model(#{model_name},#{JSON.pretty_generate(body)})" + say_error e + raise + end + end + end end