Skip to content

Commit 5683f91

Browse files
committed
Improve error message display in example
1 parent fcc9e8c commit 5683f91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pointblank/validate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,11 @@ def connect_to_table(connection_string: str) -> Any:
21662166

21672167
```{python}
21682168
#| error: true
2169-
pb.connect_to_table(f"duckdb:///{duckdb_path}")
2169+
#| output: asis
2170+
try:
2171+
pb.connect_to_table(f"duckdb:///{duckdb_path}")
2172+
except Exception as e:
2173+
print(f"**{type(e).__name__}:** {e}")
21702174
```
21712175

21722176
Here are some backend-specific connection examples:

0 commit comments

Comments
 (0)