this added proper return statements when a file could not be read.

This commit is contained in:
Marcel Nowicki
2022-02-09 22:22:03 +01:00
parent f1f60f3001
commit 4b69dee55d

View File

@@ -88,6 +88,7 @@ int main(int argc, char** argv) {
if(!file) {
std::cout << "Error opening file" << std::endl;
std::cout << helptext << '\n';
return 9;
}
// Tar spec is working with continous 512 byte size blocks. Header is 512 bytes.