Made set_error() method DRY.
1 file changed