优化500页面
This commit is contained in:
@@ -7,10 +7,14 @@ var ex;
|
||||
if (isBlank(message)){
|
||||
ex = @ExceptionUtils.getThrowable(request);
|
||||
if (ex != null){
|
||||
if (@StringUtils.startsWith(@ex.getMessage(), "msg:")){
|
||||
message = @StringUtils.replace(@ex.getMessage(), "msg:", "");
|
||||
if (@StringUtils.startsWith(ex.message, "msg:")){
|
||||
message = @StringUtils.replace(ex.message, "msg:", "");
|
||||
}else if (@StringUtils.startsWith(ex.cause.message, "msg:")){
|
||||
message = @StringUtils.replace(ex.cause.message, "msg:", "");
|
||||
}else if (ex.class.name == 'com.jeesite.common.service.ServiceException'){
|
||||
message = @ex.getMessage();
|
||||
message = ex.message;
|
||||
}else if (ex.cause.class.name == 'com.jeesite.common.service.ServiceException'){
|
||||
message = ex.cause.message;
|
||||
}
|
||||
@org.slf4j.LoggerFactory.getLogger("error/500").error(ex.message, ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user