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
1093f9d0
Commit
1093f9d0
authored
Oct 01, 2017
by
Sietse Ringers
Browse files
Error if irma_configuration does not exist
parent
dd3437ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
storage.go
View file @
1093f9d0
...
...
@@ -99,6 +99,11 @@ func NewCredentialManager(
Store
:
NewConfigurationStore
(
storagePath
+
"/irma_configuration"
),
}
exists
,
err
:=
PathExists
(
cm
.
irmaConfigurationPath
)
if
!
exists
{
return
nil
,
errors
.
New
(
"irmaConfigurationPath does not exist"
)
}
// Ensure storage path exists, and populate it with necessary files
cm
.
storagePath
=
storagePath
if
err
=
cm
.
ensureStorageExists
();
err
!=
nil
{
...
...
@@ -225,9 +230,6 @@ func (cm *CredentialManager) ensureStorageExists() error {
return
err
}
cm
.
Store
.
Copy
(
cm
.
irmaConfigurationPath
,
false
)
if
err
=
cm
.
Store
.
ParseFolder
();
err
!=
nil
{
return
err
}
}
return
ensureDirectoryExists
(
cm
.
path
(
signaturesDir
))
}
...
...
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