We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de28840 commit e298ab2Copy full SHA for e298ab2
src/message.js
@@ -65,7 +65,9 @@ const multipleResolves = function({
65
secondPromiseValue,
66
}) {
67
const again = promiseState === secondPromiseState ? ' again' : ''
68
- return `a promise was resolved/rejected multiple times
+ const state = again ? promiseState : 'resolve/rejected'
69
+
70
+ return `a promise was ${state} multiple times
71
Initially ${promiseState} with: ${serialize(promiseValue)}
72
Then ${secondPromiseState}${again} with: ${serialize(secondPromiseValue)}`
73
}
0 commit comments