Skip to content
Snippets Groups Projects
Commit 22d8d3b2 authored by Diego Molteni's avatar Diego Molteni
Browse files

Merge branch 'slb/dm3/fix-splen-mex' into 'master'

fix: fixed returned error message for wrong subproject length

See merge request !241
parents 3a0fd2d7 3336127d
No related branches found
No related tags found
2 merge requests!379Removing File Metadata Service,!241fix: fixed returned error message for wrong subproject length
Pipeline #76260 failed
......@@ -419,9 +419,11 @@ export class SubProjectHandler {
);
if (allowedSubprojectLen < 0) {
const maxChar = subproject.name.length - Math.abs(allowedSubprojectLen)
throw (Error.make(Error.Status.BAD_REQUEST,
subproject.name + ' subproject name is too long, for tenant ' + subproject.tenant +
'. The subproject name must not more than ' + Math.abs(allowedSubprojectLen) + ' characters'));
subproject.name + ' subproject name is too long (' +
subproject.name.length + ' characters), for the ' + subproject.tenant + ' tenant. ' +
'The subproject name must not be longer than ' + maxChar + ' characters'));
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment