Change error message to mention miner class