Permalink
Browse files
Add location info to error message.
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
core/word_eval.py
|
|
@@ -721,8 +721,8 @@ def EvalWordToString(self, word, do_fnmatch=False, decay=False): |
|
|
# doc with "$@".
|
|
|
|
|
|
if part_val.tag != part_value_e.StringPartValue:
|
|
|
# Example: echo f > "$@". TODO: Add proper context.
|
|
|
e_die("Expected string, got %s", part_val)
|
|
|
# Examples: echo f > "$@"; local foo="$@"
|
|
|
e_die("Expected string, got %s", part_val, word=word)
|
|
|
|
|
|
# TODO: Maybe add detail like this.
|
|
|
#e_die('RHS of assignment should only have strings. '
|
|
|
|
0 comments on commit
7a34048