]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Improve error message for the developer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 16 May 2017 00:55:33 +0000 (20:55 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 16 May 2017 00:55:33 +0000 (20:55 -0400)
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>
lib/command.c

index cc597952e4abed09ccfb67c5bddce5152bb19975..8ef9fae83283fb4a84998320bda130ed4d2f3be4 100644 (file)
@@ -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);
     }