fix non-Error exceptions thrown from FetchInstanceMetadataService.ts

This commit is contained in:
Hazelnoot 2025-06-19 13:52:06 -04:00
parent 6d8d91ba8c
commit db4cd29b74

View file

@ -187,10 +187,7 @@ export class FetchInstanceMetadataService {
throw new Error('No nodeinfo link provided');
}
const info = await this.httpRequestService.getJson(link.href)
.catch(err => {
throw err.statusCode ?? err.message;
});
const info = await this.httpRequestService.getJson(link.href);
this.logger.debug(`Successfuly fetched nodeinfo of ${instance.host}`);