Fix a crash if the cache gets corrupted
This commit is contained in:
parent
9c85dd2de3
commit
a96fd147d1
2 changed files with 4 additions and 2 deletions
|
@ -6457,7 +6457,7 @@
|
|||
COMBINE_HIDPI_IMAGES = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_HARDENED_RUNTIME = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -6494,7 +6494,7 @@
|
|||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEVELOPMENT_TEAM = N5CYW96P9T;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_HARDENED_RUNTIME = NO;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"LOCALEDIR=\\\"translations\\\"",
|
||||
|
|
|
@ -198,6 +198,8 @@ void config_cache::read_cache(const std::string& file_path, config& cfg, abstrac
|
|||
ERR_CACHE << "cache checksum is corrupt" << std::endl;
|
||||
} catch(const filesystem::io_exception&) {
|
||||
ERR_CACHE << "error reading cache checksum" << std::endl;
|
||||
} catch(const std::ios_base::failure&) {
|
||||
ERR_CACHE << "error reading cache checksum" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue