fixes #522; more specific error thrown when no rows are updated