mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-25 15:43:51 -05:00
Fix handling timeouts as a temporary error
This commit is contained in:
parent
5c6f106b78
commit
67fb379e22
|
|
@ -34,7 +34,7 @@ export function timeoutSignal(ms = 60 * 1000) {
|
|||
|
||||
const timeout = setTimeout(() => {
|
||||
const err = new Error('Timeout');
|
||||
Object.assign(err, TemporaryErrorSymbol, true);
|
||||
Object.defineProperty(err, TemporaryErrorSymbol, {value: true});
|
||||
controller.abort(err);
|
||||
}, ms);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user