Commit 9d157d9a authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Do not commit a file if it's size <= 0

parent e24d6072
Pipeline #1801796 passed with stage
in 7 minutes and 49 seconds
......@@ -514,8 +514,10 @@ void TJAlienFile::Close(Option_t * option)
TString command("commit");
Long64_t siz = GetSize();
if (siz <= 0)
if (siz <= 0) {
Error("Close", "the reported size of the written file is <= 0");
return;
}
command += " \"";
command += fAuthz;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment