Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Consider returning a 500 instead of... nothing #22

@emberian

Description

@emberian
$ curl -v localhost:1472

* Adding handle: conn: 0x24c8620
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x24c8620) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 1472 (#0)
*   Trying ::1...
* Connection refused
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 1472 (#0)
> GET /user/cmr HTTP/1.1
> User-Agent: curl/7.32.0
> Host: localhost:1472
> Accept: */*
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server

But logged:

task '<unnamed>' failed at 'Error preparing statement:
ERROR: column "id" does not exist at position 8 in
SELECT id, username, password FROM User WHERE username = $1', lib.rs:565

I think the server should return a 500 here?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions