Program exits with error code 3 when rocket.toml only has [global.databases]
defined with no clear error message
#2149
Labels
duplicate
This issue or pull request already exists
Description
If rocket.toml only has the
[global.databases]
defined and it is on the first line of the file, the program will exit with code 3. But if there's a simple line break before[global.databases]
, the program will run as expected.To Reproduce
cargo.toml:
main.rs:
If
rocket.toml
is like this, the program will not start with errorerror: process didn't exit successfully:
target\debug\rocket_bug_test.exe(exit code: 3)
But if there's something before
[global.databases]
such as a simple line break, like this:The program will start as expected:
Expected Behavior
Rocket should start with rocket.toml only containing
[global.databases]
configuration.Environment:
Additional Context
I'm working on a personal project that used
tokio_postgres
and I was migrating todiesel
. I followed Diesel's and Rocket's guides on how to get started. On the process the application simply refused to start with no clear error message. With trial and error I discovered the bug described above.Before posting this issue I created a new blank project simply containing rocket, diesel and rocket_sync_db_pools to test if I had any dependencies conflicting with Rocket and the error still occurred the same way as the other project.
The text was updated successfully, but these errors were encountered: