Builder: handle expected errors in post_ops

https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
Petr Vobornik
2013-04-18 14:39:26 +02:00
parent 9255bb481e
commit aba74aafe5

View File

@@ -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;
},