Skip to content

Commit d6a4a1a

Browse files
committed
Improve error message when CMake Configure/Clean fails
Fixes #129
1 parent 168db47 commit d6a4a1a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/commands/configureCmake.mts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ export default class ConfigureCmakeCommand extends Command {
4444
if (await configureCmakeNinja(workspaceFolder.uri)) {
4545
void window.showInformationMessage("CMake has configured your build.");
4646
} else {
47-
void window.showWarningMessage("CMake failed to configure your build.");
47+
void window.showWarningMessage(
48+
"CMake failed to configure your build. " +
49+
"See the developer console for details " +
50+
"(Help -> Toggle Developer Tools). " +
51+
"You can also use the CMake Tools Extension Integration " +
52+
"to get more information about the error."
53+
);
4854
}
4955
}
5056
}
@@ -102,7 +108,11 @@ export class CleanCMakeCommand extends Command {
102108
);
103109
} else {
104110
void window.showWarningMessage(
105-
"CMake could not be reconfigured. See log for details."
111+
"CMake could not be reconfigured. " +
112+
"See the developer console for details " +
113+
"(Help -> Toggle Developer Tools). " +
114+
"You can also use the CMake Tools Extension Integration " +
115+
"to get more information about the error."
106116
);
107117
}
108118
}

0 commit comments

Comments
 (0)