summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r--vtysh/vtysh_main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index a063425ff..07423287a 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -477,14 +477,15 @@ main (int argc, char **argv, char **env)
/* Boot startup configuration file. */
if (boot_flag)
{
- if (vtysh_read_config (integrate_default))
- {
- fprintf (stderr, "Can't open configuration file [%s]\n",
- integrate_default);
+ int ret = vtysh_read_config (integrate_default);
+ if (ret)
+ {
+ fprintf (stderr, "Configuration file[%s] processing failure: %d\n",
+ integrate_default, ret);
if (no_error)
exit (0);
else
- exit (1);
+ exit (ret);
}
else
exit (0);