diff options
author | Keuin <[email protected]> | 2023-07-02 14:52:06 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-02 14:52:06 +0800 |
commit | 6f7987593a9db5500fa56fef0ec1845a02df9876 (patch) | |
tree | 11dd64cfbe07e2d48c224da665932ce39e4f5596 /bilibili/streaming.go | |
parent | b6eb2c0da4e653c6fdd278bcbdcd55ec376cd481 (diff) |
Refactor: move task error types to separate package.
Diffstat (limited to 'bilibili/streaming.go')
-rw-r--r-- | bilibili/streaming.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bilibili/streaming.go b/bilibili/streaming.go index 8f6c491..d081a8f 100644 --- a/bilibili/streaming.go +++ b/bilibili/streaming.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + errors2 "github.com/keuin/slbr/bilibili/errors" "github.com/keuin/slbr/common" "io" "net/http" @@ -70,7 +71,7 @@ func (b Bilibili) CopyLiveStream( out, err = fileCreator() if err != nil { b.logger.Error("Cannot open file for writing: %v", err) - err = common.NewUnrecoverableTaskError("failed to create file", err) + err = errors2.NewUnrecoverableTaskError("failed to create file", err) return } _, err = out.Write(initBytes) |