Skip to content

Commit

Permalink
docs: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Aug 29, 2017
1 parent eeadab1 commit 56db843
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ require("../lib/registered-extensions").promise = function (mode, conf) {
var count = waiting[id];
if (isFailed) {
throw new Error(
"Memoizee error: Promise resolved with both failure and success," +
" this can be result of unordered done & finally resolution.\n" +
"Instead of `promise: true` consider configuring memoization via " +
"`promise: 'then'` or `promise: 'done'"
"Memoizee error: Detected unordered then|done & finally resolution, which " +
"in turn makes proper detection of success/failure impossible (when in " +
"'then:finally' or 'done:finally' mode)\n" +
"Consider to rely on 'then' or 'done' mode instead."
);
}
if (!count) return; // Deleted from cache before resolved
Expand Down

0 comments on commit 56db843

Please sign in to comment.