Skip to content

Commit fd8e801

Browse files
erichugyHorisofine
andauthored
chore: Stringify error if not of type Error
Co-authored-by: Houssam Eddine Righi <94550978+Horisofine@users.noreply.github.com>
1 parent 0d26738 commit fd8e801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integrations/zoho-sales-iq-hitl/src/setup/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const register: RegisterFunction = async ({ ctx, client, logger }) => {
2222
logger.info('Registering configuration...', appResponse)
2323
logger.info('Zoho configuration validated successfully.')
2424
} catch (error: unknown) {
25-
const errorMessage = error instanceof Error ? error.message : 'Unknown error'
25+
const errorMessage = error instanceof Error ? error.message : String(error)
2626
logger.error('Error during integration registration:', errorMessage)
2727
throw new bpclient.RuntimeError('Configuration Error! Unable to retrieve app details.')
2828
}

0 commit comments

Comments
 (0)