Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ab2f1094
Commit
ab2f1094
authored
Nov 28, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(config): error message for broken config file
closes #6731
parent
a2d1cc1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
CHANGELOG.md
+1
-0
pkg/setting/setting.go
+2
-1
No files found.
CHANGELOG.md
View file @
ab2f1094
...
...
@@ -7,6 +7,7 @@
*
**TLS Client Auth**
: Support for TLS client authentication for datasource proxies
[
#2316
](
https://github.com/grafana/grafana/issues/2316
)
*
**Alerts out of sync**
: Saving dashboards with broken alerts causes sync problem
[
#6576
](
https://github.com/grafana/grafana/issues/6576
)
*
**Alerting**
: Saving an alert with condition "HAS NO DATA" throws an error
[
#6701
](
https://github.com/grafana/grafana/issues/6701
)
*
**Config**
: Improve error message when parsing broken config file
[
#6731
](
https://github.com/grafana/grafana/issues/6731
)
# 4.0-beta2 (2016-11-21)
...
...
pkg/setting/setting.go
View file @
ab2f1094
...
...
@@ -325,11 +325,12 @@ func loadSpecifedConfigFile(configFile string) error {
}
userConfig
,
err
:=
ini
.
Load
(
configFile
)
userConfig
.
BlockMode
=
false
if
err
!=
nil
{
return
fmt
.
Errorf
(
"Failed to parse %v, %v"
,
configFile
,
err
)
}
userConfig
.
BlockMode
=
false
for
_
,
section
:=
range
userConfig
.
Sections
()
{
for
_
,
key
:=
range
section
.
Keys
()
{
if
key
.
Value
()
==
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment