mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
fix(codedeploy): answer ApplicationNameRequiredException when applicationName is missing (#7392)
This commit is contained in:
1 parent
d0747f26d1
commit
52055b774e
3 files changed
+50
No files matched your search
@@ -353,6 +353,14 @@ public class CodeDeployService {
|
||||
}
|
||||
|
||||
public Application getApplication(String region, String name) {
|
||||
if (name == null || name.isEmpty()) {
|
||||
throw new AwsException("ApplicationNameRequiredException",
|
||||
"The minimum number of required characters for applicationName is 1.", 400);
|
||||
}
|
||||
if (name.isBlank()) {
|
||||
throw new AwsException("InvalidApplicationNameException",
|
||||
"The application name was specified in an invalid format.", 400);
|
||||
}
|
||||
Application app = applicationsFor(region).get(name);
|
||||
if (app == null) {
|
||||
throw new AwsException("ApplicationDoesNotExistException",
|
||||
|
||||
Reference in new issue
Block a user