merge fix

This commit is contained in:
Anton-4 2024-06-11 18:24:22 +02:00
parent 4d00e9ad51
commit ba506d5257
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937

View file

@ -6801,13 +6801,15 @@ fn to_unrecognized_package_shorthand_report(
}
};
let severity = Severity::RuntimeError;
let doc = alloc.stack([
alloc.concat([
alloc.reflow("This module is trying to import from `"),
alloc.shorthand(shorthand),
alloc.reflow("`:"),
]),
alloc.region(lines.convert_region(region)),
alloc.region(lines.convert_region(region), severity),
help,
]);
@ -6815,7 +6817,7 @@ fn to_unrecognized_package_shorthand_report(
filename,
doc,
title: "UNRECOGNIZED PACKAGE".to_string(),
severity: Severity::RuntimeError,
severity,
};
let mut buf = String::new();