Skip to content

Commit

Permalink
refactor(client): changes token error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdeansanchez committed Apr 28, 2020
1 parent 056adac commit 8f1316b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/imgix/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def path(path)
end

def purge(path)
raise 'Authentication token required' if @api_key.nil?
token_error = 'Authentication token required'
raise token_error if @api_key.nil?

url = prefix(path) + path
uri = URI.parse('https://api.imgix.com/v2/image/purger')
Expand Down

0 comments on commit 8f1316b

Please sign in to comment.