Skip to content

Commit

Permalink
Rename e to error in catch statements across the app
Browse files Browse the repository at this point in the history
  • Loading branch information
BowTiedRadone committed Feb 5, 2025
1 parent 16a8acc commit d402d7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions citizen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}
};
Expand Down Expand Up @@ -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}`
);
}
};
Expand Down

0 comments on commit d402d7f

Please sign in to comment.