diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-15 20:55:33 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-15 20:55:33 -0400 |
| commit | 291ca371e2974a55799174e2a5447928cab57802 (patch) | |
| tree | 0029eae21f45999bac015c79a84f357eb06f51ff /lib/command.c | |
| parent | 7298b8ccd59827de1f0777ed97532f5e29f01904 (diff) | |
lib: Improve error message for the developer
I keep getting people asking me about what to do
when this error is generated when they are programming
new cli. Maybe this is a bit better bread-crumb?
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index cc597952e4..8ef9fae832 100644 --- a/lib/command.c +++ b/lib/command.c @@ -324,6 +324,7 @@ install_element (enum node_type ntype, struct cmd_element *cmd) { fprintf (stderr, "Command node %d doesn't exist, please check it\n", ntype); + fprintf (stderr, "Have you called install_node before this install_element?\n"); exit (EXIT_FAILURE); } @@ -371,6 +372,7 @@ uninstall_element (enum node_type ntype, struct cmd_element *cmd) { fprintf (stderr, "Command node %d doesn't exist, please check it\n", ntype); + fprintf (stderr, "Have you called install_node before this install_element?\n"); exit (EXIT_FAILURE); } |
