error when updating module
Sounds like a permission issue. 

If you're using ubuntu, make sure the user owner for your modules folder is www-data and 755 permission. 

Also, don't forget to run update.php by going to www.yourwebsite.com/update.php after you update drupal core OR any module.