Skip to content

Commit

Permalink
fix: Log an error if something bad happens during synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricmessiant committed Mar 15, 2019
1 parent 9d495bc commit dc34710
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/synchronizeContacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ const synchronizeContacts = async (

return result
} catch (err) {
log('error', `Error during sync: ${err.message}`)
throw new Error(`Unable to synchronize contacts: ${err.message}`)
}
}
Expand Down

0 comments on commit dc34710

Please sign in to comment.