aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-16 16:52:23 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-16 16:52:23 -0800
commit3e9153d955aa2e908f1dd661c8b91556ca8e0ee8 (patch)
tree71e1d1c592d727181a9eaee53b9355ba7c6194e4 /parse_util.cpp
parent0e421ea31dd8293c64960912ab9651b2a3b2b07d (diff)
Clean up some error messages. Don't show the line in the error message
if it's the first line and we're interactive, since then it's obvious
Diffstat (limited to 'parse_util.cpp')
-rw-r--r--parse_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_util.cpp b/parse_util.cpp
index f9567959..ff7a022c 100644
--- a/parse_util.cpp
+++ b/parse_util.cpp
@@ -1099,7 +1099,7 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src, pars
if (! found_loop && ! first_argument_is_help(node_tree, node, buff_src))
{
- errored = append_syntax_error(&parse_errors, node, INVALID_LOOP_ERR_MSG);
+ errored = append_syntax_error(&parse_errors, node, (command == L"break" ? INVALID_BREAK_ERR_MSG : INVALID_CONTINUE_ERR_MSG));
}
}
}