mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Builder: handle expected errors in post_ops
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user