makes error/warning messages prettier in constructor and expr methods