File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ Release process:
145
145
1 . test installing the rock from LuaRocks
146
146
147
147
148
+ ### 0.5.2 (unreleased)
149
+
150
+ - fix: better error handling when credential providers fail to load
151
+
148
152
### 0.5.1 (01-Jun-2022)
149
153
150
154
- feat: socket compatibility; overriding luasocket use in phases now returns
Original file line number Diff line number Diff line change @@ -480,9 +480,14 @@ function AWS:new(config)
480
480
return creds , err
481
481
end
482
482
else
483
- -- not implemented yet
484
- aws_instance [class_name ] = function (self , opts )
485
- error ((" '%s' hasn't been implemented yet" ):format (class_name ), 2 )
483
+ if cred_class :find (" module 'resty.aws.credentials." .. class_name .. " ' not found" , 1 , true ) then
484
+ -- not implemented yet
485
+ aws_instance [class_name ] = function (self , opts )
486
+ error ((" '%s' hasn't been implemented yet" ):format (class_name ), 2 )
487
+ end
488
+ else
489
+ -- some other error, bail out
490
+ error (cred_class )
486
491
end
487
492
end
488
493
end
You can’t perform that action at this time.
0 commit comments