mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
datasette --get status code for error pages, closes #947
This commit is contained in:
parent
77521c6cd7
commit
d02f6151da
3 changed files with 20 additions and 0 deletions
|
|
@ -444,6 +444,8 @@ def serve(
|
|||
client = TestClient(ds.app())
|
||||
response = client.get(get)
|
||||
click.echo(response.text)
|
||||
exit_code = 0 if response.status == 200 else 1
|
||||
sys.exit(exit_code)
|
||||
return
|
||||
|
||||
# Start the server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue