blog infra
This commit is contained in:
@@ -110,12 +110,14 @@ export class BCMRHttp extends BaseBCMR {
|
||||
);
|
||||
|
||||
// Validate the payload body.
|
||||
try{
|
||||
try {
|
||||
const metadata = MetadataRegistrySchema.parse(await response.json());
|
||||
|
||||
return metadata;
|
||||
} catch(error: unknown) {
|
||||
throw new Error(`Unable to parse the metadata registry format. Detailed error: ${error}`);
|
||||
} catch (error: unknown) {
|
||||
throw new Error(
|
||||
`Unable to parse the metadata registry format. Detailed error: ${error}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user