File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ anstream = "0.6.0"
32
32
[dev-dependencies ]
33
33
cargo_metadata = " 0.18.1"
34
34
ui_test = " 0.25"
35
+ prettydiff = " 0.7"
35
36
regex = " 1.5.5"
36
37
serde = { version = " 1.0.145" , features = [" derive" ] }
37
38
serde_json = " 1.0.122"
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ and lints affected.
39
39
if env:: var_os ( "RUSTC_BLESS" ) . is_some_and ( |v| v != "0" ) {
40
40
fs:: write ( path, expected) . unwrap ( ) ;
41
41
} else {
42
- panic ! ( "`{path}` is out of date, run `cargo bless --test config-metadata` to update it" ) ;
42
+ let diff = prettydiff:: diff_lines ( & current, & expected) ;
43
+ panic ! ( "`{path}` is out of date, run `cargo bless --test config-metadata` to update it\n {diff}" ) ;
43
44
}
44
45
}
45
46
}
You can’t perform that action at this time.
0 commit comments