Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to read the config file should terminate the application #125

Closed
Geod24 opened this issue Oct 20, 2020 · 1 comment
Closed

Failure to read the config file should terminate the application #125

Geod24 opened this issue Oct 20, 2020 · 1 comment
Assignees
Labels
prio-URGENT Tasks which the utmost priority (affect live system) type-bug Issue/PR addresses a bug

Comments

@Geod24
Copy link
Contributor

Geod24 commented Oct 20, 2020

% npm start -- -c does_not_exist.yamlisnothere

> stoa@0.0.0 prestart /Users/geod24/projects/bpfk/stoa
> npm run json2ts


> stoa@0.0.0 json2ts /Users/geod24/projects/bpfk/stoa
> json2ts -i src/modules/data/schemas/ -o src/modules/data/types/


> stoa@0.0.0 start /Users/geod24/projects/bpfk/stoa
> NODE_ENV=production nodemon -w src -d 1 -x ts-node src/main.ts "-c" "does_not_exist.yamlisnothere"

[nodemon] 2.0.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*
[nodemon] watching extensions: ts,json
[nodemon] starting `ts-node src/main.ts -c does_not_exist.yamlisnothere`
ENOENT: no such file or directory, open '/Users/geod24/projects/bpfk/stoa/does_not_exist.yamlisnothere'

The app shouldn't keep running and should shut down instead, so we can detect it from the process manager.

@Geod24 Geod24 added prio-URGENT Tasks which the utmost priority (affect live system) type-bug Issue/PR addresses a bug labels Oct 20, 2020
@MichaelKim20 MichaelKim20 self-assigned this Oct 21, 2020
@Geod24
Copy link
Contributor Author

Geod24 commented Oct 22, 2020

Fixed in #128

@Geod24 Geod24 closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-URGENT Tasks which the utmost priority (affect live system) type-bug Issue/PR addresses a bug
Projects
None yet
Development

No branches or pull requests

2 participants