error>message factored out