Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
16872afa
Commit
16872afa
authored
Apr 10, 2017
by
Morten Knutsen
Browse files
Use the actual filename provided when reading config.
parent
d5d3f8b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
conf/conf.go
View file @
16872afa
...
...
@@ -7,8 +7,7 @@ import (
func
ReadConfig
(
filename
string
)
error
{
viper
.
SetConfigName
(
filename
)
viper
.
AddConfigPath
(
"."
)
viper
.
SetConfigFile
(
filename
)
err
:=
viper
.
ReadInConfig
()
if
err
!=
nil
{
return
errors
.
New
(
err
.
Error
()
+
(
"Fatal error in config file."
))
...
...
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