Display, on machining error, display error message and correct program