diff --git a/extras/BinaryBuilder/Source/Main.cpp b/extras/BinaryBuilder/Source/Main.cpp index 709df829df..f6367318dd 100644 --- a/extras/BinaryBuilder/Source/Main.cpp +++ b/extras/BinaryBuilder/Source/Main.cpp @@ -117,7 +117,7 @@ int main (int argc, char* argv[]) " resultant class, but #ifdef'ed out using the name of the sub-directory (hard to\n" " explain, but obvious when you try it...)\n"; - return 0; + return 2; // USAGE } const File sourceDirectory (File::getCurrentWorkingDirectory() @@ -129,7 +129,7 @@ int main (int argc, char* argv[]) << sourceDirectory.getFullPathName() << std::endl << std::endl; - return 0; + return 1; // General ERROR } const File destDirectory (File::getCurrentWorkingDirectory() @@ -140,7 +140,7 @@ int main (int argc, char* argv[]) std::cout << "Destination directory doesn't exist: " << destDirectory.getFullPathName() << std::endl << std::endl; - return 0; + return 1; // General ERROR } String className (argv[3]); @@ -161,7 +161,7 @@ int main (int argc, char* argv[]) { std::cout << "Didn't find any source files in: " << sourceDirectory.getFullPathName() << std::endl << std::endl; - return 0; + return 1; // General ERROR } headerFile.deleteFile(); @@ -173,7 +173,7 @@ int main (int argc, char* argv[]) { std::cout << "Couldn't open " << headerFile.getFullPathName() << " for writing" << std::endl << std::endl; - return 0; + return 126; // NO_PERM } std::unique_ptr cpp (cppFile.createOutputStream()); @@ -182,7 +182,7 @@ int main (int argc, char* argv[]) { std::cout << "Couldn't open " << cppFile.getFullPathName() << " for writing" << std::endl << std::endl; - return 0; + return 126; // NO_PERM } *header << "/* (Auto-generated binary data file). */\r\n\r\n"