diff --git a/app/models/user.rb b/app/models/user.rb index 4b60d982..c79f9a21 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -83,7 +83,8 @@ def balance result = HTTParty.get(File.join(Rails.application.config.api_url, "users", "#{name}.json"), headers: headers) JSON.parse(result.body)["balance"] if result.code == 200 - rescue StandardError # rubocop:disable Lint/SuppressedException + rescue StandardError => e + raise "Error fetching balance from Tab: #{e}" end end