diff --git a/lib/adapters/websql.js b/lib/adapters/websql.js
index <HASH>..<HASH> 100644
--- a/lib/adapters/websql.js
+++ b/lib/adapters/websql.js
@@ -37,20 +37,12 @@ function unknownError(callback) {
 
     // event may actually be a SQLError object, so report is as such
     var errorNameMatch = event && event.constructor.toString().match(/function ([^\(]+)/);
-    var errorName = errorNameMatch && errorNameMatch[1];
-
-    utils.call(callback, {
-      status: 500,
-      error: event.type || errorName,
-      reason: event.target || event.message
-    });
-  };
-}
-function idbError(callback) {
-  return function (event) {
-    utils.call(callback, errors.error(errors.WSQ_ERROR, event.target, event.type));
+    var errorName = (errorNameMatch && errorNameMatch[1]) || event.type;
+    var errorReason = event.target || event.message;
+    utils.call(callback, errors.error(errors.WSQ_ERROR, errorReason, errorName));
   };
 }
+
 function webSqlPouch(opts, callback) {
 
   var api = {};
(#<I>) - clean up errors in websql