Skip to content

Commit 31ab581

Browse files
committed
put output in try/catch
1 parent 30aaad4 commit 31ab581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ <h2>Demo</h2>
8585
error.style.display = 'none'
8686
try {
8787
output.innerHTML = await window.sqldef(dbType.value, inputB.value, inputA.value)
88+
output.style.display = 'block'
8889
} catch (e) {
8990
error.style.display = 'block'
9091
error.innerHTML = e.message
9192
}
92-
output.style.display = 'block'
9393
})
9494
</script>
9595

0 commit comments

Comments
 (0)