From f5c07986290cd1be2fee09139c5e5c6f18097d19 Mon Sep 17 00:00:00 2001 From: Taras Date: Tue, 30 Aug 2022 09:21:10 +0200 Subject: [PATCH] examples/bugfix --- src/errors/ErrorHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors/ErrorHandler.ts b/src/errors/ErrorHandler.ts index 5a8a15f..457ca03 100644 --- a/src/errors/ErrorHandler.ts +++ b/src/errors/ErrorHandler.ts @@ -4,7 +4,7 @@ export function ErrorHandler(error: Error) { try { message = JSON.parse(error.message).message hint = JSON.parse(error.message).hint - } catch (e) { + } catch (_) { message = error.message hint = "No hint provided" }