From 2245ad2024776de5829b27cf2ff1bbfaadce4b29 Mon Sep 17 00:00:00 2001 From: Paulhenry Saux Date: Wed, 22 Jul 2026 20:28:32 +0200 Subject: [PATCH] fix(plugins): use correct method name for message errors in host-api.ts --- lib/plugin-sandbox/host-api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugin-sandbox/host-api.ts b/lib/plugin-sandbox/host-api.ts index b1f05cd4..56e268cc 100644 --- a/lib/plugin-sandbox/host-api.ts +++ b/lib/plugin-sandbox/host-api.ts @@ -397,7 +397,7 @@ async function doJmapImportRaw( async function doContactSearch(query: string): Promise { const { client } = useAuthStore.getState(); if (!client) { - throw new Error('jmap.importRaw: no active session'); + throw new Error('contact.search: no active session'); } return await client.searchContacts(query); } @@ -405,7 +405,7 @@ async function doContactSearch(query: string): Promise { async function doContactGet(contactId: string): Promise { const { client } = useAuthStore.getState(); if (!client) { - throw new Error('jmap.importRaw: no active session'); + throw new Error('contact.get: no active session'); } return await client.getContact(contactId); } @@ -413,7 +413,7 @@ async function doContactGet(contactId: string): Promise { async function doContactUpdate(id: string, contact: Partial): Promise { const { client } = useAuthStore.getState(); if (!client) { - throw new Error('jmap.importRaw: no active session'); + throw new Error('contact.update: no active session'); } await client.updateContact(id, contact); @@ -422,7 +422,7 @@ async function doContactUpdate(id: string, contact: Partial): Promi async function doContactCreate(contact: ContactCard): Promise { const { client } = useAuthStore.getState(); if (!client) { - throw new Error('jmap.importRaw: no active session'); + throw new Error('contact.create: no active session'); } return await client.createContact(contact);