parser: Throw detailed exception on error

When parse fails throw detailed exception so errors can be located and
fixed