diff --git a/src/tools/dumpnbt.cpp b/src/tools/dumpnbt.cpp index 34a445c..d28f098 100644 --- a/src/tools/dumpnbt.cpp +++ b/src/tools/dumpnbt.cpp @@ -86,12 +86,15 @@ int main(int argc, char* argv[]) { } fileStream.close(); - bool validData = NBT::validateRawNBTData(data, fileSize); - if (validData) { + bool isValidData = NBT::validateRawNBTData(data, fileSize); + if (isValidData) { std::cerr << "Valid data." << std::endl; } else { std::cerr << "Invalid data." << std::endl; + return EXIT_RUNTIME; } + //TODO: print things here + return EXIT_SUCCESS; }