diff options
author | Keuin <[email protected]> | 2022-09-16 02:30:24 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-16 02:30:24 +0800 |
commit | 0725ebf24da4d3f06097372e31c05a49543edc79 (patch) | |
tree | 7ddd83c555d446b00271fa29f55d1316e0d11766 /recording/errors.go | |
parent | 12c856a10cb9c59ae97504ce0fcd9fdb044bdd14 (diff) |
Bugfix: empty files will be created if the live room is opened but the live hasn't started yet
Diffstat (limited to 'recording/errors.go')
-rw-r--r-- | recording/errors.go | 33 |
1 files changed, 0 insertions, 33 deletions
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} -} |