fix: Inverted logic when opening files from the command line

(cherry picked from commit 5500faa57e)
This commit is contained in:
WerWolv
2025-12-17 13:50:57 +01:00
parent 51d773cf14
commit 684a9b3009

View File

@@ -360,7 +360,7 @@ namespace hex::plugin::builtin {
FileProvider provider;
provider.setPath(filePath);
auto result = provider.open();
if (!result.isFailure()) {
if (result.isFailure()) {
log::println("Failed to open file '{}': {}", args[0], result.getErrorMessage());
std::exit(EXIT_FAILURE);
}