summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/nim/project/nimproject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp
index 6ad9879469..fa5420db02 100644
--- a/src/plugins/nim/project/nimproject.cpp
+++ b/src/plugins/nim/project/nimproject.cpp
@@ -158,8 +158,10 @@ QList<Task> NimProject::projectIssues(const Kit *k) const
{
QList<Task> result = Project::projectIssues(k);
auto tc = dynamic_cast<NimToolChain*>(ToolChainKitInformation::toolChain(k, Constants::C_NIMLANGUAGE_ID));
- if (!tc)
+ if (!tc) {
result.append(createProjectTask(Task::TaskType::Error, tr("No Nim compiler set.")));
+ return result;
+ }
if (!tc->compilerCommand().exists())
result.append(createProjectTask(Task::TaskType::Error, tr("Nim compiler does not exist.")));