reasonml-old/BetterErrors

Handle nonexistent file

chenglou opened this issue · 1 comments

(Continuation of #28, only this one left. Requires some bigger code refactoring)

File "asd.ml", line 1:
Error: I/O error: asd.ml: No such file or directory

Also (reason master):

echo "type a = Foo Bar" | refmt -use-stdin true -parse re -print ml -is-interface-pp false
File "", line 2, characters 0-0:
Error: 215: <SYNTAX ERROR>