Separated warnings and errors in refine.