moved result to triggerError method