The fix to prevent multiple op policy modle to be inserted introduced another bug, this pr fixes it
Issue-ID: CLAMP-828
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I90432688df48cbf2b456efae5e4191e2909077cc
return response.text();
}
})
return response.text();
}
})
- .then(function (object) {
+ .catch(function (error) {
console.error("Add Operational Policy query failed");
console.error("Add Operational Policy query failed");
- throw new Error(object);
+ throw new Error(error);