title: What does the fail keyword do in Ruby?
body: <p>I am learning Ruby and encountered the <code>fail</code> keyword. What does it mean?</p>
  
  <pre><code>if password.length &lt; 8
     fail "Password too short"
  end
  unless  username
     fail "No user name set"
  end
  </code></pre>