mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2026-02-17 10:07:29 +01:00
this added proper return statements when a file could not be read.
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -88,6 +88,7 @@ int main(int argc, char** argv) {
|
|||||||
if(!file) {
|
if(!file) {
|
||||||
std::cout << "Error opening file" << std::endl;
|
std::cout << "Error opening file" << std::endl;
|
||||||
std::cout << helptext << '\n';
|
std::cout << helptext << '\n';
|
||||||
|
return 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tar spec is working with continous 512 byte size blocks. Header is 512 bytes.
|
// Tar spec is working with continous 512 byte size blocks. Header is 512 bytes.
|
||||||
|
|||||||
Reference in New Issue
Block a user