summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-01 14:00:22 +0200
committerAdrian Kummerlaender2018-10-01 15:00:03 +0200
commit63b4c91cf795f9511f407edf4ec0ddb338c532dd (patch)
treed1b4d5b2d7e2c79c32aabf4e29558d14ddb3dc0f
parentf31a80eff2807945aa5e1071b8cc3c556658b8da (diff)
downloadpkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar.gz
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar.bz2
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar.lz
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar.xz
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.tar.zst
pkgs-63b4c91cf795f9511f407edf4ec0ddb338c532dd.zip
Improve error reporting in `katex-wrapper`
-rw-r--r--pkgs/katex-wrapper/default.nix5
1 files changed, 4 insertions, 1 deletions
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);
});