If one makes a typo in a config file, the supervisor prints out a Rust Result directly.
Maybe the supervisor should just abort if the generation of configuration files fails; the current behaviour might lead to starting mis-configured services.
How to reproduce
- Create an empty
plan.sh and a config/some_file
- Fill
config/some_file with:
This will generate an error similar to:
php-redis.default(SR): Failed to write service configuration: hab-sup(SC)[src/manager/service/config.rs:161:27]: TemplateError(TemplateError { reason: InvalidSyntax, template_name: Some("phpfpm.conf"), line_no: Some(6), column_no: Some(32) })
If one makes a typo in a config file, the supervisor prints out a Rust
Resultdirectly.Maybe the supervisor should just abort if the generation of configuration files fails; the current behaviour might lead to starting mis-configured services.
How to reproduce
plan.shand aconfig/some_fileconfig/some_filewith:This will generate an error similar to: