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