mirror of https://github.com/halo-dev/halo
Pass IOException into exception stack instead of ignoring it (#1913)
* Set IOException into exception stack Signed-off-by: johnniang <johnniang@fastmail.com> * Fix checkstyle error: newline neededpull/1916/head
parent
913002d56d
commit
ff782c2e6f
|
@ -152,7 +152,8 @@ public class LocalFileHandler implements FileHandler {
|
|||
file.getOriginalFilename(), uploadFilePath.getFullPath());
|
||||
return uploadResult;
|
||||
} catch (IOException e) {
|
||||
throw new FileOperationException("上传附件失败").setErrorData(uploadFilePath.getFullPath());
|
||||
throw new FileOperationException("上传附件失败", e)
|
||||
.setErrorData(uploadFilePath.getFullPath());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue