trap error on dropbox sdk