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
dfbec92d
Commit
dfbec92d
authored
Sep 26, 2017
by
Sietse Ringers
Browse files
Return error in ParseAndroidStorage() if file not found
parent
2228b35b
Changes
1
Hide whitespace changes
Inline
Side-by-side
storage.go
View file @
dfbec92d
...
...
@@ -89,9 +89,12 @@ func (cm *CredentialManager) Init(path string, keyshareHandler KeyshareHandler)
// CAREFUL: this method overwrites any existing secret keys and attributes on storage.
func
(
cm
*
CredentialManager
)
ParseAndroidStorage
()
(
err
error
)
{
exists
,
err
:=
PathExists
(
cm
.
path
(
cardemuXML
))
if
err
!=
nil
||
!
exists
{
if
err
!=
nil
{
return
}
if
!
exists
{
return
errors
.
New
(
"cardemu.xml not found at "
+
cardemuXML
)
}
bytes
,
err
:=
ioutil
.
ReadFile
(
cm
.
path
(
cardemuXML
))
if
err
!=
nil
{
...
...
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