mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
throw error if no responsei is returned
This commit is contained in:
parent
06037204a9
commit
341261d314
2 changed files with 2 additions and 4 deletions
|
@ -92,7 +92,7 @@ module.exports = {
|
||||||
let description = []
|
let description = []
|
||||||
let files = [];
|
let files = [];
|
||||||
|
|
||||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
if(!res.body.output) throw "Unable to generate response"
|
||||||
|
|
||||||
if(res.body.output.length <= 4000) description.push(res.body.output)
|
if(res.body.output.length <= 4000) description.push(res.body.output)
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -100,9 +100,7 @@ Current time: ${new Date().toLocaleDateString('en-us', { weekday:"long", year:"n
|
||||||
let description = []
|
let description = []
|
||||||
let files = [];
|
let files = [];
|
||||||
|
|
||||||
if(!res.body.output) res.body.output = '[Empty Response]'
|
if(!res.body.output) throw "Unable to generate response"
|
||||||
|
|
||||||
guh();
|
|
||||||
|
|
||||||
if(res.body.output.length <= 4000) description.push(res.body.output)
|
if(res.body.output.length <= 4000) description.push(res.body.output)
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue