commit | 9c44e551ffebdc5717484ef15a91faffa4428c16 | [log] [tgz] |
---|---|---|
author | Oluwatobi Bashir-Bello <[email protected]> | Thu Aug 21 10:55:13 2014 -0400 |
committer | Nabila Bashir-Bello <[email protected]> | Thu Aug 21 16:52:40 2014 +0000 |
tree | 7251a8a35c820d1d5e73f49712cd469291c8a8ea | |
parent | 04453f6a12c441447933595f2f18168e89660bca [diff] |
Fixed the bug where "Tools -> Google Cloud Tools -> Generate Endpoint" functionality allowed adding an Endpoint to non-backend module. This no longer happens. Change-Id: I4ec21f50aed0216e734a8f8a71cf50f328030192
diff --git a/src/com/google/gct/idea/appengine/gradle/action/GenerateEndpointAction.java b/src/com/google/gct/idea/appengine/gradle/action/GenerateEndpointAction.java index f442f43..7e236b2 100644 --- a/src/com/google/gct/idea/appengine/gradle/action/GenerateEndpointAction.java +++ b/src/com/google/gct/idea/appengine/gradle/action/GenerateEndpointAction.java
@@ -83,6 +83,7 @@ try { if (!AppEngineUtils.isAppEngineModule(project, module)) { Messages.showErrorDialog(project, "Endpoints can only be generated for App Engine projects.", ERROR_MESSAGE_TITLE); + return; } } catch (FileNotFoundException error) {