empty response error handling

This commit is contained in:
Ben Goldberg
2023-04-30 21:25:05 -07:00
parent d778e6f1fb
commit d7c39af60c
+3
View File
@@ -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);