Skip to content
Make OCaml/Reason errors prettier
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
errs
src
tests
.gitignore
.merlin
.npmignore
LICENSE.txt
README.md
package.json

README.md

THIS REPO IS DEPRECATED

BetterErrors is now built into bsb. You can enable it through adding "bsc-flags": ["-bs-super-errors"] in bsconfig.json. Accompanying blog post here.

=== Old Setup ===

Setup

To install BetterErrors we recommend installing reason-cli which ships with BetterErrors by default.

Before

Before

After

Glorious After

Before

Before

After

Glorious After

someCompilationCommand 2>&1 | berror

Explanation: 2>&1 | means "pipe the stuff from stderr into stdout, then pipe it back into stdin of the next command". berror takes in this info and searches for errors to pretty-print back.

To format the output in Reason syntax, use berror --path-to-refmttype thePathToRefmttype (where refmttype is a binary exposed by Reason).

Have fun!

For Development

git clone this repo, cd into it, then run:

npm install
# to compile
npm start
# to test, currently broken
npm test
You can’t perform that action at this time.