mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
server: update error message
replace 'teared down' with 'torn down'
This commit is contained in:
@@ -196,14 +196,14 @@ func (e ErrServerLinkedToOtherSession) Error() string {
|
||||
return "connection is linked to another session"
|
||||
}
|
||||
|
||||
// ErrServerSessionTeardown is an error that can be returned by a server.
|
||||
type ErrServerSessionTeardown struct {
|
||||
// ErrServerSessionTornDown is an error that can be returned by a server.
|
||||
type ErrServerSessionTornDown struct {
|
||||
Author net.Addr
|
||||
}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerSessionTeardown) Error() string {
|
||||
return fmt.Sprintf("teared down by %v", e.Author)
|
||||
func (e ErrServerSessionTornDown) Error() string {
|
||||
return fmt.Sprintf("torn down by %v", e.Author)
|
||||
}
|
||||
|
||||
// ErrServerSessionLinkedToOtherConn is an error that can be returned by a server.
|
||||
|
Reference in New Issue
Block a user