append newlinen to error definitions