closes pterodactyl/panel#2413
This commit is contained in:
parent
7646c27c5a
commit
2cc06e0528
|
@ -106,7 +106,7 @@ func (e *RequestError) AbortFilesystemError(c *gin.Context) {
|
|||
}
|
||||
|
||||
if errors.Is(e.Err, server.ErrNotEnoughDiskSpace) {
|
||||
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{
|
||||
c.AbortWithStatusJSON(http.StatusConflict, gin.H{
|
||||
"error": server.ErrNotEnoughDiskSpace.Error(),
|
||||
})
|
||||
return
|
||||
|
|
|
@ -309,7 +309,7 @@ func postServerCompressFiles(c *gin.Context) {
|
|||
|
||||
f, err := s.Filesystem.CompressFiles(data.RootPath, data.Files)
|
||||
if err != nil {
|
||||
TrackedServerError(err, s).AbortWithServerError(c)
|
||||
TrackedServerError(err, s).AbortFilesystemError(c)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,7 @@ func postServerDecompressFiles(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
TrackedServerError(err, s).AbortWithServerError(c)
|
||||
TrackedServerError(err, s).AbortFilesystemError(c)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user