Changed a bit the thrown error