Browse Source

Add error message for broken view changing

Serj Kalichev 10 years ago
parent
commit
bf2170ea3c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      clish/shell/shell_execute.c

+ 3 - 0
clish/shell/shell_execute.c

@@ -170,6 +170,9 @@ int clish_shell_execute(clish_context_t *context, char **out)
 		if (viewname) {
 			/* Search for the view */
 			clish_view_t *view = clish_shell_find_view(this, viewname);
+			if (!view)
+				fprintf(stderr, "System error: Can't "
+					"change view to %s\n", viewname);
 			lub_string_free(viewname);
 			/* Save the PWD */
 			if (view) {