Skip to content

Commit

Permalink
Improve error message when CMake Configure/Clean fails
Browse files Browse the repository at this point in the history
Fixes #129
  • Loading branch information
will-v-pi committed Jan 15, 2025
1 parent 168db47 commit d6a4a1a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/commands/configureCmake.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ export default class ConfigureCmakeCommand extends Command {
if (await configureCmakeNinja(workspaceFolder.uri)) {
void window.showInformationMessage("CMake has configured your build.");
} else {
void window.showWarningMessage("CMake failed to configure your build.");
void window.showWarningMessage(
"CMake failed to configure your build. " +
"See the developer console for details " +
"(Help -> Toggle Developer Tools). " +
"You can also use the CMake Tools Extension Integration " +
"to get more information about the error."
);
}
}
}
Expand Down Expand Up @@ -102,7 +108,11 @@ export class CleanCMakeCommand extends Command {
);
} else {
void window.showWarningMessage(
"CMake could not be reconfigured. See log for details."
"CMake could not be reconfigured. " +
"See the developer console for details " +
"(Help -> Toggle Developer Tools). " +
"You can also use the CMake Tools Extension Integration " +
"to get more information about the error."
);
}
}
Expand Down

0 comments on commit d6a4a1a

Please sign in to comment.