simple_command icon indicating copy to clipboard operation
simple_command copied to clipboard

version 0.1.0 brakes add_multiple_errors

Open vdaubry opened this issue 5 years ago • 1 comments

When calling add_multiple_errors with an error hash i get NoMethodError: undefined method each' for #String:0x00007ff1cd1a8710`

I have an error object from another command object, when i call add_multiple_errors it works with version 0.9.0 and raises a NoMethodError error with 0.1.0:

>command.errors
:error=>["21004 The shared secret you provided does not match the shared secret on file for your account."]}
>errors.add_multiple_errors(command.errors)
NoMethodError: undefined method `each' for #<String:0x00007ff1cd1a8710>

vdaubry avatar Jan 14 '20 06:01 vdaubry

Thanks for reporting, can you please provide a breaking spec for this scenario?

kennyadsl avatar Jan 31 '20 16:01 kennyadsl