You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2015/04/29 07:44:33 UTC

[49/50] git commit: updated refs/heads/master to 0b83559

Throwing an exception incase the template service couldnt register template.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/faaa1365
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/faaa1365
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/faaa1365

Branch: refs/heads/master
Commit: faaa1365a3e9f8729967f85701befa43a45bdcb6
Parents: 75ae90b
Author: Rajani Karuturi <ra...@gmail.com>
Authored: Mon Apr 27 15:00:35 2015 +0530
Committer: Rajani Karuturi <ra...@gmail.com>
Committed: Mon Apr 27 15:12:09 2015 +0530

----------------------------------------------------------------------
 server/src/com/cloud/template/TemplateManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/faaa1365/server/src/com/cloud/template/TemplateManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/template/TemplateManagerImpl.java b/server/src/com/cloud/template/TemplateManagerImpl.java
index 10ff77f..af35dd8 100755
--- a/server/src/com/cloud/template/TemplateManagerImpl.java
+++ b/server/src/com/cloud/template/TemplateManagerImpl.java
@@ -384,7 +384,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
 
             return response;
         } else {
-            return null;
+            throw new CloudRuntimeException("Unable to register template.");
         }
     }