diff --git a/wallet.js b/wallet.js
index <HASH>..<HASH> 100644
--- a/wallet.js
+++ b/wallet.js
@@ -1453,7 +1453,7 @@ function getSigner(opts, arrSigningDeviceAddresses, signWithLocalPrivateKey) {
 				[address, address, address],
 				function (rows) {
 					if (rows.length !== 1)
-						throw Error("definition not found");
+						return handleDefinition("definition not found");
 					handleDefinition(null, JSON.parse(rows[0].definition));
 				}
 			);
pass "definition not found" error into callback