From 63b4c91cf795f9511f407edf4ec0ddb338c532dd Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 1 Oct 2018 14:00:22 +0200 Subject: Improve error reporting in `katex-wrapper` --- pkgs/katex-wrapper/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/katex-wrapper/default.nix b/pkgs/katex-wrapper/default.nix index 37fe63a..c06725b 100644 --- a/pkgs/katex-wrapper/default.nix +++ b/pkgs/katex-wrapper/default.nix @@ -41,7 +41,10 @@ in pkgs.writeTextFile { }); process.stdin.on("end", function() { - var options = { displayMode: args.indexOf("--display-mode") !== -1 }; + var options = { + displayMode: args.indexOf("--display-mode") !== -1, + throwOnError: false + }; var output = katex.renderToString(input, options); console.log(output); }); -- cgit v1.2.3