diff --git a/lib/sqlHandler.js b/lib/sqlHandler.js
index <HASH>..<HASH> 100644
--- a/lib/sqlHandler.js
+++ b/lib/sqlHandler.js
@@ -617,7 +617,7 @@ SqlStore.prototype.update = function(request, partialResource, finishedCallback)
         if (err) return finishTransaction(err);
 
         theResource.update(partialResource, t).asCallback(function(err3) {
-          if (err) return finishTransaction(err3);
+          if (err3) return finishTransaction(err3);
           return finishTransaction(null, partialResource);
         });
       });
Fix typo

this was blindly ignoring validation errors