parse_scrolling_args combines two errors into one message, which also
happens to end with a newline. This separates the errors and fixes
the message.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2019-07-17 Tom Tromey <tom@tromey.com>
+ * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
+
+2019-07-17 Tom Tromey <tom@tromey.com>
+
* tui/tui-winsource.h (struct tui_exec_info_window)
(struct tui_source_window_base): Move from tui-data.h.
* tui/tui-winsource.c: Move many method definitions from
*win_to_scroll = tui_partial_win_by_name (wname);
- if (*win_to_scroll == NULL
- || !(*win_to_scroll)->is_visible)
- error (_("Invalid window specified. \n\
-The window name specified must be valid and visible.\n"));
+ if (*win_to_scroll == NULL)
+ error (_("Unrecognized window `%s'"), wname);
+ if (!(*win_to_scroll)->is_visible)
+ error (_("Window is not visible"));
else if (*win_to_scroll == TUI_CMD_WIN)
*win_to_scroll = tui_source_windows ()[0];
}