Skip to content

Commit 0c4a826

Browse files
committed
Record solang compile panics as major failures
1 parent a6d2363 commit 0c4a826

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/stylus.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,17 @@ fn tests(required_forbidden_pairs: &[(&[&str], &[&str])]) {
112112
contract,
113113
) {
114114
Ok((tempdir, address)) => (tempdir, address),
115-
Err(error) => {
116-
eprintln!("Failed to deploy `{}`: {error:?}", path.display());
115+
Err(Error(severity, error)) => {
116+
if matches!(severity, Severity::Minor) {
117+
eprintln!("Failed to deploy `{}`: {error:?}", path.display());
118+
} else {
119+
failures.push((
120+
path.to_path_buf(),
121+
String::from("<deployment>"),
122+
severity,
123+
error,
124+
));
125+
}
117126
continue;
118127
}
119128
};

0 commit comments

Comments
 (0)