change doc exists warning to doc exists error