fix error handling in google drive