Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWaterLW committed Mar 30, 2023
1 parent ade64a6 commit 9ead98e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqle/common/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package common

import (
"context"
"errors"
"fmt"

"github.com/actiontech/sqle/sqle/log"
Expand Down Expand Up @@ -30,7 +31,7 @@ func CheckDeleteInstance(instanceId uint) error {
return fmt.Errorf("check if all workflows are finished failed: %v", err)
}
if isUnFinished {
return fmt.Errorf("has unfinished workflows")
return errors.New("has unfinished workflows")
}

return nil
Expand Down

0 comments on commit 9ead98e

Please sign in to comment.