fix: Inverted logic when opening files from the command line

This commit is contained in:
WerWolv
2025-12-17 13:50:57 +01:00
parent 89004574d3
commit 5500faa57e

View File

@@ -362,7 +362,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);
}