aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_execution.cpp
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-10-13 17:27:56 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-10-13 17:27:56 -0700
commit0372cdbe7eba761d6fce1abccdf70c33c956968e (patch)
tree91aa4da9a776906394d1b0d1218e27679f43908a /parse_execution.cpp
parent5d1ddc9c58db991719b3c86c89d6e161cdb4a68f (diff)
Standardize unmatched wildcard errors
Unmatched wildcard errors during parsing are normally only reported when run interactively. The switch command was unconditionally reporting them anyway (and not setting the status to 124). Fix it so switch goes through the same code path as everything else.
Diffstat (limited to 'parse_execution.cpp')
-rw-r--r--parse_execution.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse_execution.cpp b/parse_execution.cpp
index 18d419ff..a77ba579 100644
--- a/parse_execution.cpp
+++ b/parse_execution.cpp
@@ -552,9 +552,7 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(const p
case EXPAND_WILDCARD_NO_MATCH:
{
- /* Store the node that failed to expand */
- report_error(switch_value_node, WILDCARD_ERR_MSG, switch_value.c_str());
- result = parse_execution_errored;
+ result = report_unmatched_wildcard_error(switch_value_node);
break;
}