Added UPDATE error check
Merge pull request #8 from CSNW/update-error-check

Added UPDATE error check