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

@@ -191,7 +191,7 @@ var Resolver = (function () {
return;
}
}
if (found) resolve(found);else reject();
if (found) resolve(found);else reject(new Error("not found anything"));
});
};