improve err format consistency