diff options
Diffstat (limited to 'bilibili')
-rw-r--r-- | bilibili/errors.go | 7 | ||||
-rw-r--r-- | bilibili/streaming.go | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/bilibili/errors.go b/bilibili/errors.go deleted file mode 100644 index 3f8ac9b..0000000 --- a/bilibili/errors.go +++ /dev/null @@ -1,7 +0,0 @@ -package bilibili - -import "fmt" - -var ( - ErrRoomIsClosed = fmt.Errorf("living room is closed") -) diff --git a/bilibili/streaming.go b/bilibili/streaming.go index c89126d..ea9207c 100644 --- a/bilibili/streaming.go +++ b/bilibili/streaming.go @@ -42,7 +42,7 @@ func (b Bilibili) CopyLiveStream( // 404 when not streaming if resp.StatusCode == http.StatusNotFound { - return ErrRoomIsClosed + return fmt.Errorf("live is not started or the room does not exist") } err = validateHttpStatus(resp) |