update error message
This commit is contained in:
parent
684b4426eb
commit
1d93cccd90
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ func (m *MuteExecutor) muteStatus(gtsClient *client.Client) error {
|
|||
}
|
||||
|
||||
if !canMute {
|
||||
return Error{"unable to mute the status because you are not the owner and you are not mentioned in it"}
|
||||
return Error{"unable to mute the status because the status does not belong to you nor are you mentioned in it"}
|
||||
}
|
||||
|
||||
if err := gtsClient.MuteStatus(m.statusID); err != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ func (m *UnmuteExecutor) unmuteStatus(gtsClient *client.Client) error {
|
|||
}
|
||||
|
||||
if !canUnmute {
|
||||
return Error{"unable to unmute the status because you are not the owner and you are not mentioned in it"}
|
||||
return Error{"unable to unmute the status because the status does not belong to you nor are you mentioned in it"}
|
||||
}
|
||||
|
||||
if err := gtsClient.UnmuteStatus(m.statusID); err != nil {
|
||||
|
|
Loading…
Reference in a new issue