mirror of
https://github.com/langchain-ai/auto-evaluator.git
synced 2026-07-01 20:44:05 -04:00
empty response error handling
This commit is contained in:
@@ -196,6 +196,9 @@ const Playground = ({ form }: { form: Form }) => {
|
||||
onclose() {
|
||||
console.log("Connection closed by the server");
|
||||
setLoading(false);
|
||||
if (!rowCount) {
|
||||
throw new Error("No results were returned from the server.");
|
||||
}
|
||||
},
|
||||
onerror(err) {
|
||||
console.log("There was an error from server", err);
|
||||
|
||||
Reference in New Issue
Block a user