Minor: handle parser errors, print function wrapper