diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-25 18:02:12 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-25 18:02:12 +0200 |
commit | 675b473a07f8af7c7c01203ce7ed16f09e3085ba (patch) | |
tree | ac00f2daac77020c7b5698e7ec1cc766c9896f7c | |
parent | efa744c63b388773a4ea76d0f690042ec1689159 (diff) | |
download | vyos-1x-675b473a07f8af7c7c01203ce7ed16f09e3085ba.tar.gz vyos-1x-675b473a07f8af7c7c01203ce7ed16f09e3085ba.zip |
frr: T2638: fix error message grammar error and add debug howto
-rw-r--r-- | python/vyos/frr.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/vyos/frr.py b/python/vyos/frr.py index de3dbe6e9..df6849472 100644 --- a/python/vyos/frr.py +++ b/python/vyos/frr.py @@ -203,7 +203,10 @@ def reload_configuration(config, daemon=None): for i, e in enumerate(output.split('\n')): LOG.debug(f'frr-reload output: {i:3} {e}') if code == 1: - raise CommitError(f'Configuration FRR failed while commiting code, please enabling debugging to examine logs') + raise CommitError('FRR configuration failed while running commit. Please ' \ + 'enable debugging to examine logs.\n\n\n' \ + 'To enable debugging run: "touch /tmp/vyos.frr.debug" ' \ + 'and "sudo systemctl stop vyos-configd"') elif code: raise OSError(code, output) |