mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
🔇 无效的驱动器不输出异常信息,仅返回给页面错误消息
This commit is contained in:
@@ -52,6 +52,17 @@ public class GlobleExceptionHandler {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 无效的驱动器异常
|
||||
*/
|
||||
@ExceptionHandler({InvalidDriveException.class})
|
||||
@ResponseBody
|
||||
@ResponseStatus
|
||||
public ResultBean invalidDriveException(InvalidDriveException ex) {
|
||||
return ResultBean.error(ex.getMessage());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 文件预览异常
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user