Skip to content

Commit 2295870

Browse files
committed
Quote paths for installation errors
1 parent 82dbecd commit 2295870

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/linters/BadInstallationLinter.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ class BadInstallationLinter final : public Linter {
1818
for (const auto& [layer, details]: layers) {
1919
if (!std::filesystem::exists(layer.mJSONPath)) {
2020
errors.push_back(std::make_shared<InvalidLayerLintError>(
21-
fmt::format("JSON file {} does not exist", layer.mJSONPath.string()),
21+
fmt::format(
22+
"JSON file `{}` does not exist", layer.mJSONPath.string()),
2223
layer.mJSONPath));
2324
continue;
2425
}
2526

2627
if (details.mState != APILayerDetails::State::Loaded) {
2728
errors.push_back(std::make_shared<InvalidLayerLintError>(
2829
fmt::format(
29-
"Unable to load details from the JSON file {}",
30+
"Unable to load details from the JSON file `{}`",
3031
layer.mJSONPath.string()),
3132
layer.mJSONPath));
3233
continue;
@@ -35,7 +36,7 @@ class BadInstallationLinter final : public Linter {
3536
if (details.mLibraryPath.empty()) {
3637
errors.push_back(std::make_shared<InvalidLayerLintError>(
3738
fmt::format(
38-
"Layer does not specify an implementation in {}",
39+
"Layer does not specify an implementation in `{}`",
3940
layer.mJSONPath.string()),
4041
layer.mJSONPath));
4142
continue;
@@ -44,7 +45,7 @@ class BadInstallationLinter final : public Linter {
4445
if (!std::filesystem::exists(details.mLibraryPath)) {
4546
errors.push_back(std::make_shared<InvalidLayerLintError>(
4647
fmt::format(
47-
"Implementation file '{}' does not exist",
48+
"Implementation file `{}` does not exist",
4849
details.mLibraryPath.string()),
4950
layer.mJSONPath));
5051
continue;

0 commit comments

Comments
 (0)