Don't allow a reinstall while server is processing a power action; closes pterodactyl/panel#2409

This commit is contained in:
Dane Everitt
2020-09-25 20:03:04 -07:00
parent ae5005baa3
commit fb24ad58b4
2 changed files with 11 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ func (s *Server) onBeforeStart() error {
} else {
s.PublishConsoleOutputFromDaemon("Checking server disk space usage, this could take a few seconds...")
if !s.Filesystem.HasSpaceAvailable(false) {
return errors.New("cannot start server, not enough disk space available")
return ErrNotEnoughDiskSpace
}
}