We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1e195 commit 8f732daCopy full SHA for 8f732da
1 file changed
ts/util/Retries.ts
@@ -113,7 +113,10 @@ export function handleRetriesFor(code: () => any): Promise<any> {
113
* actions will continue
114
*/
115
export function retryAfter(promise: Promise<any>) {
116
- const err = new Error('MathJax retry') as RetryError;
+ const err = new Error(
117
+ 'MathJax retry -- an asynchronous action is required; ' +
118
+ 'try using one of the promise-based functions and await its resolution.'
119
+ ) as RetryError;
120
err.retry = promise;
121
throw err;
122
}
0 commit comments