fix error message so that it is reachable and matches other checks in kernel driver