From fbe3aa29ae79fc3b4feef0c0f8403bbdefc09280 Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Wed, 22 Nov 2023 18:25:24 +0530 Subject: [PATCH] fix: fix error message --- .../restapi/src/lib/pushNotification/pushNotificationBase.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/restapi/src/lib/pushNotification/pushNotificationBase.ts b/packages/restapi/src/lib/pushNotification/pushNotificationBase.ts index 4748d4a8e..2bbfc8557 100644 --- a/packages/restapi/src/lib/pushNotification/pushNotificationBase.ts +++ b/packages/restapi/src/lib/pushNotification/pushNotificationBase.ts @@ -25,6 +25,7 @@ import { validateCAIP, } from '../helpers'; import * as PUSH_ALIAS from '../alias'; +import { PushAPI } from '../pushapi/PushAPI'; // ERROR CONSTANTS const ERROR_ACCOUNT_NEEDED = 'Account is required'; @@ -113,7 +114,7 @@ export class PushNotificationBaseClass { // checks if the signer object is supplied protected checkSignerObjectExists() { - if (!this.signer) throw new Error(ERROR_SIGNER_NEEDED); + if (!this.signer) throw new Error(PushAPI.ensureSignerMessage()); return true; }