added error handling for the Evernote API