Permalink
Browse files

Add location info to error message.

Addresses issue #61.
  • Loading branch information...
Andy Chu
Andy Chu committed Jan 11, 2018
1 parent ee94047 commit 7a34048027d698eeb44310f994bc47c2c69400a0
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/word_eval.py
View
@@ -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

Please sign in to comment.