- if (!build_header.good())
- non_continuable_error(static_class_name(), func, astring("failed to create "
- "build header file in ") + build_header.filename());
- build_header.write(new_contents);
- LOG(astring(static_class_name()) + ": wrote config to "
- + build_header.filename());
+ if (!build_header.good()) {
+ continuable_error(static_class_name(), func, astring("could not create "
+ "build header file in ") + build_header.name());
+ return false;
+ } else {
+ build_header.write(new_contents);
+ LOG(astring(static_class_name()) + ": wrote config to "
+ + build_header.name());
+ }