summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-init
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-07-19 20:18:04 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-08-26 04:24:57 +0200
commit6e56f469aea4988e6650b991dcc5db166d265d86 (patch)
tree015a2e9f48def355244aaa24bdaa311b6eb629e4 /bin/core/imag-init
parent5b82d53fd29294ac598d3e80fcee0e7b27f59c0c (diff)
More verbose erroring in test
Diffstat (limited to 'bin/core/imag-init')
-rw-r--r--bin/core/imag-init/src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs
index de809128..ef899630 100644
--- a/bin/core/imag-init/src/main.rs
+++ b/bin/core/imag-init/src/main.rs
@@ -267,8 +267,11 @@ mod tests {
#[test]
fn test_config() {
- assert!(from_str::<Value>(&get_config()[..]).is_ok());
- assert!(from_str::<Value>(&get_config_devel()[..]).is_ok());
+ let val = from_str::<Value>(&get_config()[..]);
+ assert!(val.is_ok(), "Config parsing errored: {:?}", val);
+
+ let val = from_str::<Value>(&get_config_devel()[..]);
+ assert!(val.is_ok(), "Config parsing errored: {:?}", val);
}
}