导入非需要捕捉异常提示为导入失败

This commit is contained in:
wangxin
2018-11-14 16:14:08 +08:00
parent 59368dbff5
commit f848d07585

View File

@@ -1683,7 +1683,11 @@ public class BaseController {
ei.getUploadFile().delete();
}
}
addMessage(redirectAttributes,"error", e.getMessage());
if(e instanceof MaatConvertException||e instanceof ServiceException) {
addMessage(redirectAttributes,"error", e.getMessage());
}else {
addMessage(redirectAttributes,"error", "import_failed");
}
e.printStackTrace();
}
long end=System.currentTimeMillis();