Fixed resolver rejection for callbacks

potentially could cause some code to crash if using callbacks instead of
promises
This commit is contained in:
hydrabolt
2015-11-19 16:34:42 +00:00
parent c74b5dbd3f
commit d70f66abfd
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ class Resolver {
if (found)
resolve(found);
else
reject();
reject(new Error("not found anything"));
});
}