config-loader: ignore AbortErrors in RemoteConfigSource

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-04-04 09:54:13 +02:00
parent 41660a538f
commit 4caade51a0
@@ -111,7 +111,9 @@ export class RemoteConfigSource implements ConfigSource {
yield { configs: [{ data, context: this.#url }] };
}
} catch (error) {
console.error(`Failed to read config from ${this.#url}, ${error}`);
if (error.name !== 'AbortError') {
console.error(`Failed to read config from ${this.#url}, ${error}`);
}
}
}
}