From 0627a803ea73dd2852e890fe01a916cbd6a4c03a Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Wed, 16 Nov 2022 19:06:04 +0530 Subject: [PATCH] verbose error message --- packages/core/src/lib/waku_store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/waku_store/index.ts b/packages/core/src/lib/waku_store/index.ts index 2d30632b5d..addac8e37d 100644 --- a/packages/core/src/lib/waku_store/index.ts +++ b/packages/core/src/lib/waku_store/index.ts @@ -388,7 +388,7 @@ export async function createCursor( !message.payload || !message.contentTopic ) { - throw new Error("Message is missing timestamp or payload"); + throw new Error("Message is missing required fields"); } const contentTopicBytes = utf8ToBytes(message.contentTopic);