chore: ArweaveWrapper error messages
This commit is contained in:
@@ -25,7 +25,7 @@ export class ArweaveWrapper {
|
|||||||
if (error.body?.message) {
|
if (error.body?.message) {
|
||||||
this.logger.error(error.body.message);
|
this.logger.error(error.body.message);
|
||||||
}
|
}
|
||||||
throw new Error(`Unable to retrieve info. ${error.status}.`);
|
throw new Error(`Unable to retrieve info. ${error.status}: ${error.body?.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
@@ -58,7 +58,7 @@ export class ArweaveWrapper {
|
|||||||
if (error.body?.message) {
|
if (error.body?.message) {
|
||||||
this.logger.error(error.body.message);
|
this.logger.error(error.body.message);
|
||||||
}
|
}
|
||||||
throw new Error(`Unable to retrieve gql page. ${error.status}.`);
|
throw new Error(`Unable to retrieve gql page. ${error.status}: ${error.body?.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user