Skip to content

Commit e6850c6

Browse files
committed
feat: warn ruby
1 parent bbdaf8e commit e6850c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/ruby/lib/container/client.rb.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ module {{ spec.title | caseUcfirst }}
226226
raise {{spec.title | caseUcfirst}}::Exception.new(error.message)
227227
end
228228

229+
warnings = response['x-{{ spec.title | lower }}-warning']
230+
if warnings
231+
warnings.split(';').each do |warning|
232+
warn warning
233+
end
234+
end
235+
229236
location = response['location']
230237
if response_type == "location"
231238
return location

0 commit comments

Comments
 (0)