Skip to content

Commit

Permalink
Revert "fix(kumascript): mention path in render error message (#8936)"
Browse files Browse the repository at this point in the history
This reverts commit 27938ad.
  • Loading branch information
fiji-flo committed May 27, 2023
1 parent 3253a58 commit e716d19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion kumascript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export async function render(
rawHTML,
{
...metadata,
path: fileInfo.path,
url,
tags: metadata.tags || [],
selective_mode,
Expand Down
5 changes: 1 addition & 4 deletions kumascript/src/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export default class Templates {
});
return rendered.trim();
} catch (error) {
console.error(
`The ${name} macro in ${args.env.path ?? "?"} failed to render.`,
error
);
console.error(`${name} macro failed:`, error);
throw error;
}
}
Expand Down

0 comments on commit e716d19

Please sign in to comment.