mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-02 15:18:36 -05:00
Fix handling timeouts as a temporary error
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user