mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 11:37:00 -07:00
Fix fmt 10 breaking logging and changed printing format
This commit is contained in:
parent
5bdc605f0b
commit
431be7914c
10 changed files with 114 additions and 130 deletions
|
|
@ -262,8 +262,7 @@ namespace gdpm::config{
|
|||
else if(property == "verbosity") config.verbose = std::stoi(value);
|
||||
else if(property == "style") config.style = to_style(value);
|
||||
else{
|
||||
return log::error_rc(error(
|
||||
constants::error::INVALID_CONFIG,
|
||||
return log::error_rc(error(ec::INVALID_CONFIG,
|
||||
"Could not find property"
|
||||
));
|
||||
}
|
||||
|
|
@ -331,7 +330,7 @@ namespace gdpm::config{
|
|||
|
||||
|
||||
error validate(const rapidjson::Document& doc){
|
||||
error error(constants::error::INVALID_CONFIG, "");
|
||||
error error(ec::INVALID_CONFIG, "");
|
||||
if(!doc.IsObject()){
|
||||
error.set_message("Document is not a JSON object.");
|
||||
return error;
|
||||
|
|
@ -344,7 +343,7 @@ namespace gdpm::config{
|
|||
error.set_message("Key `remote_sources` is not a JSON object.");
|
||||
return error;
|
||||
}
|
||||
error.set_code(constants::error::NONE);
|
||||
error.set_code(ec::NONE);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue