---
date: "2016-08-31"
---

Today I needed to re-raise an error in ruby, but change the error message slightly. It turns out this is baked right in to the use of `raise`!

```ruby
do
  # something that raises
rescue => e
  raise e, "This is my modified message"
end
```

[The docs!](https://ruby-doc.org/core-2.3.1/Kernel.html#method-i-raise)
