Genericise the warning / error step