Use Kernel#raise instead of Kernel#fail.