Skip to content

Commit

Permalink
fix errors count in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Dec 31, 2024
1 parent 59dac9e commit 6648c6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/acts/tools/gsc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2090,9 +2090,8 @@ int GscInfoHandleData(byte* data, size_t size, std::filesystem::path fsPath, Gsc
{
core::async::opt_lock_guard lg{ gdctx.asyncMtx };
gdctx.hardErrors++;
if (!exportErrors || dumpAllErrors) {
if (!(exportErrors++) || dumpAllErrors) {
LOG_ERROR("Can't decompile export: {}", err.what());
exportErrors++;
}
}
}
Expand Down

0 comments on commit 6648c6c

Please sign in to comment.