Refactor: extract error to new method with before_filter.
Authored by: edavis10 2010-04-26
Parent: [r3689]
Child: [r3691]