Skip to content

"This should basically never happen" #204

Description

@JWesorick

So this exception wan't super helpful and also, despite what the exception says, it did happen. I was making a call to fetch a bank account:

Balanced::BankAccount.fetch("/bank_accounts/#{bank_account_id}")

where bank_account_id = nil. I understand the error is that the id is nil, but it seems like it should either be caught earlier or have a better exception message.

https://github.com/balanced/balanced-ruby/blob/master/lib/balanced/resources/resource.rb#L243

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions