* replace app->error to app->triggerError.