Skip to content

Commit 9904e77

Browse files
committed
😳
1 parent 045c149 commit 9904e77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
})
4747
});
4848

49-
if (!res.ok) throw new Error("Something went wrong :/");
49+
if (!res.ok) {
50+
throw new Error(await res.text());
51+
}
5052

5153
status.textContent = "Message sent!";
5254
form.reset();

0 commit comments

Comments
 (0)