Skip to content

Commit 0778b39

Browse files
Update templates/types/streaming/express/src/controllers/chat-upload.controller.ts
1 parent d1b2811 commit 0778b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/types/streaming/express/src/controllers/chat-upload.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const chatUpload = async (req: Request, res: Response) => {
1616
const index = await getDataSource(params);
1717
if (!index) {
1818
return res.status(500).json({
19-
error: "Failed to get data source",
19+
error: "StorageContext is empty - call 'npm run generate' to generate the storage first",
2020
});
2121
}
2222
return res.status(200).json(await uploadDocument(index, filename, base64));

0 commit comments

Comments
 (0)