fix errors handlig
This commit is contained in:
parent
b4b371e0db
commit
eb30f85846
2 changed files with 5 additions and 3 deletions
|
@ -199,8 +199,8 @@ func HandleErrorMessage(
|
|||
) {
|
||||
currentError := err
|
||||
|
||||
if errors.As(currentError, context.Canceled) ||
|
||||
errors.As(currentError, context.DeadlineExceeded) {
|
||||
if errors.Is(currentError, context.Canceled) ||
|
||||
errors.Is(currentError, context.DeadlineExceeded) {
|
||||
SendErrorMessage(
|
||||
bot, ctx,
|
||||
"download request canceled or timed out",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue