Catch more broader error messages. (#5212) (#5213)

(cherry picked from commit fa49051912)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/5263/head
patchback[bot] 2022-09-03 11:34:59 +02:00 committed by GitHub
parent 3055b34fa8
commit d746f9d4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@
assert: assert:
that: that:
- eval_error is failed - eval_error is failed
- eval_error.msg.startswith("Caught \"'foo' is undefined\" while evaluating ") - eval_error.msg.startswith("Caught \"'foo' is undefined")
- name: "Test 5: same variable name reused" - name: "Test 5: same variable name reused"
debug: debug:
@ -147,7 +147,7 @@
assert: assert:
that: that:
- eval_error is failed - eval_error is failed
- eval_error.msg.startswith("Caught \"'x' is undefined\" while evaluating ") - eval_error.msg.startswith("Caught \"'x' is undefined")
- name: "Test 6: multi-value dict" - name: "Test 6: multi-value dict"
debug: debug: