Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita committed Jan 4, 2018
1 parent 24d019a commit 132f415
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions renderer/services/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ export const exportUser = () => {
body: 'Your user config was exported successfully'
})
)
.catch(err =>
notify({
.catch(err => {
console.log(err)
return notify({
title: 'Error!',
body: 'Ops, something happened! Please, try again.'
})
)
})
}
}
)
Expand All @@ -51,12 +52,13 @@ export const importUser = () => {
body: 'Your user config was imported successfully'
})
)
.catch(err =>
notify({
.catch(err => {
console.log(err)
return notify({
title: 'Error!',
body: 'Ops, something happened! Please, try again.'
})
)
})
}
)
}
Expand Down

0 comments on commit 132f415

Please sign in to comment.