From 7c0c90f65c3f6cf8e44d5146863484c819efd593 Mon Sep 17 00:00:00 2001 From: BowTiedRadone Date: Wed, 5 Feb 2025 18:32:21 +0200 Subject: [PATCH] Rename `e` to `error` in catch statements across the app --- citizen.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/citizen.ts b/citizen.ts index c008de59..9aadb8d2 100644 --- a/citizen.ts +++ b/citizen.ts @@ -216,9 +216,9 @@ export const buildRendezvousData = ( rendezvousSource: rendezvousSource, rendezvousContractName: contractName, }; - } catch (e: any) { + } catch (error: any) { throw new Error( - `Error processing "${contractName}" contract: ${e.message}` + `Error processing "${contractName}" contract: ${error.message}` ); } }; @@ -295,9 +295,9 @@ export const getTestContractSource = ( return readFileSync(join(manifestDir, testContractPath), { encoding: "utf-8", }).toString(); - } catch (e: any) { + } catch (error: any) { throw new Error( - `Error retrieving the corresponding test contract for the "${sutContractName}" contract. ${e.message}` + `Error retrieving the corresponding test contract for the "${sutContractName}" contract. ${error.message}` ); } };