From 27ae98fc6ebd7d325237f9f5a4022ea627e700b7 Mon Sep 17 00:00:00 2001 From: ConjunctiveNormalForm Date: Mon, 15 Apr 2024 15:15:28 -0400 Subject: [PATCH] fix type --- lib/handlers/hard-quote/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/handlers/hard-quote/handler.ts b/lib/handlers/hard-quote/handler.ts index bd1a91d..faeb841 100644 --- a/lib/handlers/hard-quote/handler.ts +++ b/lib/handlers/hard-quote/handler.ts @@ -114,7 +114,7 @@ export class QuoteHandler extends APIGLambdaHandler< log.error({ error: e }, 'Error posting order'); metric.putMetric(Metric.QUOTE_400, 1, MetricLoggerUnit.Count); metric.putMetric(Metric.QUOTE_POST_ERROR, 1, MetricLoggerUnit.Count); - throw new OrderPostError(e.message); + throw new OrderPostError((e as Error).message); } }