mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 17:02:55 +08:00
Currently when a model is not found, we raise an `ArgumentError` exception and that exception is stored in the resulting context object. However, since we’re also storing unexpected exceptions, this default exception can pollute the context object when we need to inspect it or act on it. This patch addresses that issue by raising a custom exception instead, and we then discard it from the context object. |
||
|---|---|---|
| .. | ||
| action_base.rb | ||
| base.rb | ||
| contract_base.rb | ||
| options_base.rb | ||
| policy_base.rb | ||
| runner.rb | ||
| steps_inspector.rb | ||