Mercurial > srxproxy
changeset 30:3261a356ce18
Show better error message on commit error
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Wed, 13 Feb 2013 12:46:27 +0100 |
| parents | 321d12efed3d |
| children | 52465113b621 |
| files | srxproxy.py |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/srxproxy.py Wed Feb 13 12:36:33 2013 +0100 +++ b/srxproxy.py Wed Feb 13 12:46:27 2013 +0100 @@ -123,7 +123,10 @@ '{urn:ietf:params:xml:ns:netconf:base:1.0}rpc-error', ) if error: - LOG.warning('Commit error (%s)', error.text) + text = error.find( + '{urn:ietf:params:xml:ns:netconf:base:1.0}error-message', + ) + LOG.warning('Commit error (%s)', text) break else: LOG.debug('Commited')
