mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-23 15:12:52 +08:00
Make invalidPluginDependencyNamespace more informative
This commit is contained in:
parent
82a0e5ec7e
commit
c8d381e2cf
@ -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();
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user