Make invalidPluginDependencyNamespace more informative

This commit is contained in:
Nassim Jahnke 2023-09-30 15:08:16 +10:00
parent 82a0e5ec7e
commit c8d381e2cf
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ public class VersionFactory extends HangarComponent {
// Hangar project dependency
final ProjectTable depProjectTable = this.projectService.getProjectTable(pluginDependency.getName());
if (depProjectTable == null) {
throw new HangarApiException(HttpStatus.BAD_REQUEST, "version.new.error.invalidPluginDependencyNamespace");
throw new HangarApiException(HttpStatus.BAD_REQUEST, "version.new.error.invalidPluginDependencyNamespace", pluginDependency.getName());
}
depProjectId = depProjectTable.getProjectId();
}

View File

@ -505,7 +505,7 @@
"unknown": "An unknown error has occurred",
"incomplete": "Plugin file missing {0}",
"noDescription": "Must have a description",
"invalidPluginDependencyNamespace": "Declared plugin dependency has an invalid project namespace",
"invalidPluginDependencyNamespace": "Plugin dependency {0} does not exist on Hangar",
"invalidName": "Invalid version name",
"channel": {
"noName": "Must have a channel name specified",