Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Loïc Bersier
Haha Yes
Commits
8863fa60
Commit
8863fa60
authored
Mar 04, 2021
by
Loïc Bersier
😎
Browse files
Handle error
parent
57ad3910
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
commands/utility/download.js
commands/utility/download.js
+5
-1
No files found.
commands/utility/download.js
View file @
8863fa60
...
...
@@ -114,7 +114,11 @@ class DownloadCommand extends Command {
message
.
channel
.
send
({
embed
:
Embed
,
files
:
[
`
${
os
.
tmpdir
()}
/
${
message
.
id
}
compressed.mp4`
]
});
})
.
catch
(
err
=>
{
console
.
error
(
err
);
return
message
.
channel
.
send
(
`
${
err
.
name
}
:
${
err
.
message
}
${
err
.
message
===
'
Request entity too large
'
?
'
The file size is too big
'
:
''
}
`
);
});
});
}
else
{
retry
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment