Do not create project files if there were problems during project generation

This commit is contained in:
Valentina Kiryushkina
2017-01-26 12:55:53 +03:00
parent dc851e61ad
commit 348d1cd012
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -68,6 +68,7 @@ public class PythonGenerateProjectCallback implements NullableConsumer<ProjectSe
final boolean result = beforeProjectGenerated.fun((PythonProjectGenerator)generator);
if (!result) {
Messages.showWarningDialog("Project can not be generated", "Error in Project Generation");
return;
}
}
}