Skip to content

Commit a98c4ba

Browse files
committed
Fix bug in error handling for API requests and release 2.1.3 (fixes #80)
1 parent 5fa6246 commit a98c4ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## 2.1.3 (2015-08-24):
6+
7+
* Fix a bug in error message handling code [#80](https://github.com/JonathanTron/chef-grafana/issues/80)
8+
59
## 2.1.2 (2015-08-24):
610

711
* Fix Grafana package checksums [#79](https://github.com/JonathanTron/chef-grafana/issues/79)

libraries/api_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def handle_response_success(request, message)
8888

8989
def handle_response_unauthorized(message)
9090
if message
91-
Chef::Log.error messages[:unauthorized]
91+
Chef::Log.error message
9292
else
9393
Chef::Log.error 'Invalid grafana_user and grafana_sess.'
9494
end

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache 2.0'
55
description 'Installs/Configures grafana'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '2.1.2'
7+
version '2.1.3'
88

99
supports 'ubuntu', '>= 12.04'
1010
supports 'debian', '>= 7.0'

0 commit comments

Comments
 (0)