From 0725ebf24da4d3f06097372e31c05a49543edc79 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 16 Sep 2022 02:30:24 +0800 Subject: Bugfix: empty files will be created if the live room is opened but the live hasn't started yet --- recording/errors.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 recording/errors.go (limited to 'recording/errors.go') diff --git a/recording/errors.go b/recording/errors.go deleted file mode 100644 index 48a492e..0000000 --- a/recording/errors.go +++ /dev/null @@ -1,33 +0,0 @@ -package recording - -import "fmt" - -/* -Task errors. -*/ - -type RecoverableTaskError struct { - err error - message string -} - -func (e *RecoverableTaskError) Error() string { - return fmt.Sprintf("%v: %v", e.message, e.err) -} - -func NewRecoverableTaskError(message string, err error) error { - return &RecoverableTaskError{message: message, err: err} -} - -type UnrecoverableTaskError struct { - err error - message string -} - -func (e *UnrecoverableTaskError) Error() string { - return fmt.Sprintf("%v: %v", e.message, e.err) -} - -func NewUnrecoverableTaskError(message string, err error) error { - return &UnrecoverableTaskError{message: message, err: err} -} -- cgit v1.2.3