Skip to content

Commit faaa136

Browse files
committed
Throwing an exception incase the template service couldnt register template.
1 parent 75ae90b commit faaa136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/com/cloud/template/TemplateManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public GetUploadParamsResponse registerTemplateForPostUpload(GetUploadParamsForT
384384

385385
return response;
386386
} else {
387-
return null;
387+
throw new CloudRuntimeException("Unable to register template.");
388388
}
389389
}
390390

0 commit comments

Comments
 (0)