aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser/tests.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-07-01 15:44:04 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-07-31 10:27:15 +0200
commit91e3c88d8f6428d41326869bbd8f6ece99145627 (patch)
tree76308a10c6de2e7fd4c1ba63924a261197a74370 /askama_derive/src/parser/tests.rs
parent8b184511edff62bd3786be3f5d62c1965430278b (diff)
downloadaskama-91e3c88d8f6428d41326869bbd8f6ece99145627.tar.gz
askama-91e3c88d8f6428d41326869bbd8f6ece99145627.tar.bz2
askama-91e3c88d8f6428d41326869bbd8f6ece99145627.zip
derive: define separate ParseError type
Diffstat (limited to 'askama_derive/src/parser/tests.rs')
-rw-r--r--askama_derive/src/parser/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser/tests.rs b/askama_derive/src/parser/tests.rs
index 68cf14b..0e785eb 100644
--- a/askama_derive/src/parser/tests.rs
+++ b/askama_derive/src/parser/tests.rs
@@ -260,7 +260,7 @@ fn test_rust_macro() {
assert_eq!(
&*super::parse("{{a.b.c!( hello )}}", &syntax)
.unwrap_err()
- .msg,
+ .to_string(),
"problems parsing template source at row 1, column 7 near:\n\"!( hello )}}\"",
);
}
@@ -706,7 +706,7 @@ fn test_missing_space_after_kw() {
let syntax = Syntax::default();
let err = super::parse("{%leta=b%}", &syntax).unwrap_err();
assert!(matches!(
- &*err.msg,
+ &*err.to_string(),
"unable to parse template:\n\n\"{%leta=b%}\""
));
}