dproto
dproto copied to clipboard
no context shown on DProtoSyntaxException => should show line number
@msoucy I have a large proto file, and get this error:
~/.dub/packages/dproto-2.1.1/dproto/import/dproto/parse.d(511,11): Error: uncaught CTFE exception dproto.exception.DProtoSyntaxException("Expected an integer but was ``")
it should show offending line number otherwise really hard to fix
Started on the error-lines
branch (4cca795778af442038057e17cef569bebbd50f17)... It fixes scenarios where it's being run for just the string processing, but doesn't yet handle extracting the information from CTFE exceptions.
@msoucy also, is showing the contents of the entire proto necessary? if we had file:line i think showing file:line contents[line] would be enough
So the reason that it displays the contents, is that it's not currently being caught so it's dumping the raw exception. I'll look into it