Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a9f23e20
Commit
a9f23e20
authored
Dec 13, 2018
by
Sietse Ringers
Browse files
Log config file unmarshaling errors
parent
fb068f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/irmaserver/cmd/main.go
View file @
a9f23e20
...
...
@@ -100,7 +100,11 @@ func configure() error {
logger
.
Debugf
(
"Configuring"
)
if
err
!=
nil
{
logger
.
Info
(
"No configuration file found"
)
if
_
,
notfound
:=
err
.
(
viper
.
ConfigFileNotFoundError
);
notfound
{
logger
.
Info
(
"No configuration file found"
)
}
else
{
die
(
errors
.
WrapPrefix
(
err
,
"Failed to unmarshal configuration file at "
+
viper
.
ConfigFileUsed
(),
0
))
}
}
else
{
logger
.
Info
(
"Config file: "
,
viper
.
ConfigFileUsed
())
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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