Skip to content

Commit

Permalink
Add Chinese exception info.
Browse files Browse the repository at this point in the history
  • Loading branch information
zqburde committed Nov 20, 2023
1 parent 61213c9 commit 1fef330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ private void uploadProject(Workspace workspace, String tmpSavePath, String proje
private String dealSchedulisErrorMsg(String errorMsg) {
Matcher matcher = ERROR_PATTERN.matcher(errorMsg);
if (matcher.find() && matcher.group().length() >= SCHEDULIS_MAX_SIZE) {
errorMsg = "wokflow name " + matcher.group().split("/")[1] + " is to long, please abide the rules of schedulis: projectName + workflowName*3 + 12 <= 250 ";
}
errorMsg = "wokflow name " + matcher.group().split("/")[1] + " is to long, please abide the rules of schedulis: projectName + workflowName*3 + 12 <= 250 " +
"(工作流名称太长,需要满足规则 项目名长度 + 工作流长度*3 + 12 <= 250)"; }
return errorMsg;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public void deleteWorkflow(String userName, Long flowId) throws DSSErrorExceptio
if (dssFlow.getCreator().equals(userName)) {
flowService.batchDeleteFlow(Collections.singletonList(flowId));
} else {
throw new DSSErrorException(100088, "Workflow can not be deleted unless the owner.");
}
throw new DSSErrorException(100088, "Workflow can not be deleted unless the owner.(工作流不允许被其拥有者之外的用户删除!)"); }
logger.info("delete workflow success. flowId:{}",flowId);
}

Expand Down

0 comments on commit 1fef330

Please sign in to comment.