Replaced panic with error
This commit is contained in:
parent
fe545ff0f3
commit
2bb14c1794
|
@ -448,7 +448,7 @@ func downloadDiscordResource(ctx context.Context, url string) ([]byte, string, e
|
|||
|
||||
content, err := io.ReadAll(res.Body)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
return content, res.Header.Get("Content-Type"), nil
|
||||
|
|
Loading…
Reference in New Issue