modify the error to warn level