mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the make stop print error
This commit is contained in:
parent
ecc016f1c9
commit
ce83799d27
@ -149,7 +149,7 @@ func Start(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errs.Wrap(err, "shutdown err")
|
return errs.Wrap(err, "shutdown err")
|
||||||
}
|
}
|
||||||
return errors.New("SIGTERM received, shutting down")
|
return errors.New("SIGTERM EXIT")
|
||||||
case <-netDone:
|
case <-netDone:
|
||||||
close(netDone)
|
close(netDone)
|
||||||
return netErr
|
return netErr
|
||||||
|
|||||||
@ -17,7 +17,6 @@ package genutil
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/OpenIMSDK/tools/errs"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
@ -43,7 +42,7 @@ func OutDir(path string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ExitWithError(err error) {
|
func ExitWithError(err error) {
|
||||||
if errors.Is(errs.Unwrap(err), errors.New("SIGTERM received, shutting down")) {
|
if errors.Is(err, errors.New("SIGTERM EXIT")) {
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
progName := filepath.Base(os.Args[0])
|
progName := filepath.Base(os.Args[0])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user