const or remove parameter `msg` because it is not used at all.