Closed Kilerd closed 4 years ago
this is one way to implement this. another way is throwing the run's return variable to main function which needs to change the signature of funtion main as fn main() -> Result<()>{...}
.
let me know if there are some advantages to the latter one.
This looks good; thanks for the PR!
when i using
movine
in CI pipeline, and i configure the wrong environment variableDATABASE_URL
, it printedError: Error in Postgres: error connecting to server: Connection refused (os error 111)
, but the pipeline responded that is passed.