Skip to content

Commit

Permalink
Fix bug in error handling for API requests and release 2.1.3 (fixes #80)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanTron committed Aug 24, 2015
1 parent 5fa6246 commit a98c4ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This file is used to list changes made in each version of grafana.

## 2.1.3 (2015-08-24):

* Fix a bug in error message handling code [#80](https://github.com/JonathanTron/chef-grafana/issues/80)

## 2.1.2 (2015-08-24):

* Fix Grafana package checksums [#79](https://github.com/JonathanTron/chef-grafana/issues/79)
Expand Down
2 changes: 1 addition & 1 deletion libraries/api_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def handle_response_success(request, message)

def handle_response_unauthorized(message)
if message
Chef::Log.error messages[:unauthorized]
Chef::Log.error message
else
Chef::Log.error 'Invalid grafana_user and grafana_sess.'
end
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Installs/Configures grafana'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.1.2'
version '2.1.3'

supports 'ubuntu', '>= 12.04'
supports 'debian', '>= 7.0'
Expand Down

0 comments on commit a98c4ba

Please sign in to comment.