From aba74aafe57479e3d94e7010f08907352596edb8 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 18 Apr 2013 14:39:26 +0200 Subject: Builder: handle expected errors in post_ops https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/_base/Builder.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/ui/src/freeipa/_base/Builder.js b/install/ui/src/freeipa/_base/Builder.js index 4c542fc53..cddadb9f1 100644 --- a/install/ui/src/freeipa/_base/Builder.js +++ b/install/ui/src/freeipa/_base/Builder.js @@ -299,6 +299,11 @@ define(['dojo/_base/declare', } else { obj = new cs.ctor(cs.spec); } + + obj = this._run_post_ops(this.post_ops, obj, cs.spec, context); + if (cs.post_ops) { + obj = this._run_post_ops(cs.post_ops, obj, cs.spec, context); + } } catch (e) { if (e.expected) { // expected exceptions thrown by builder just mean that @@ -309,11 +314,6 @@ define(['dojo/_base/declare', } } - obj = this._run_post_ops(this.post_ops, obj, cs.spec, context); - if (cs.post_ops) { - obj = this._run_post_ops(cs.post_ops, obj, cs.spec, context); - } - return obj; }, -- cgit