Skip to content

Commit

Permalink
Release v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcm authored Jul 7, 2023
2 parents d6e7c2a + 69ac9ef commit 7c69932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xkcm/better-errors",
"version": "1.1.0",
"version": "1.1.1",
"description": "Better errors with TypeScript",
"author": "xkcm",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion src/core/BetterError.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class BetterError<
/%\{(.+?)\}/g,
(placeholder: string) => {
const dataPath = placeholder.slice(2, -1);
const targetObject = objectUtils.pick(this, ["code", "metadata"]);
const targetObject = objectUtils.pick(this, ["code", "metadata", "cause"]);

const value = objectUtils.get(targetObject, dataPath);
return String(value);
Expand Down

0 comments on commit 7c69932

Please sign in to comment.