update error printing