lutaml / expressir

Ruby parser for the ISO EXPRESS language
3 stars 2 forks source link

When `Parser.from_file` can't find the file, raise a proper FileNotFound error #128

Closed ronaldtse closed 9 months ago

ronaldtse commented 1 year ago
a = Expressir::Express::Parser.from_file('data/resources/shape_aspect_schema/shape_aspect_annotated.
exp')
line 1:0 mismatched input '<EOF>' expecting SCHEMA
=> #<Expressir::Model::Repository:0x00000001099f83f0 @schemas=[]>           
irb(main):005:0> 

This is very strange. When there is no file, do not even parse the file.