You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now hicat doesn't handle empty files correctly while cat does:
$ touch some_file
$ cat some_file
$ hicat some_file
/usr/local/lib/node_modules/hicat/index.js:38
if (!out || !out.value) throw new Error("failed to highlight");
^
Error: failed to highlight
at hicat (/usr/local/lib/node_modules/hicat/index.js:38:33)
at /usr/local/lib/node_modules/hicat/bin/hicat:82:20
at Array.forEach (native)
at /usr/local/lib/node_modules/hicat/bin/hicat:77:9
at read (/usr/local/lib/node_modules/hicat/lib/read.js:59:5)
at Object.<anonymous> (/usr/local/lib/node_modules/hicat/bin/hicat:75:1)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
Would be great if this use case could be fixed.
The text was updated successfully, but these errors were encountered:
Right now
hicat
doesn't handle empty files correctly whilecat
does:Would be great if this use case could be fixed.
The text was updated successfully, but these errors were encountered: