fix non-Error exceptions thrown from FetchInstanceMetadataService.ts
This commit is contained in:
parent
6d8d91ba8c
commit
db4cd29b74
1 changed files with 1 additions and 4 deletions
|
|
@ -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}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue