Skip to content

Commit b78500f

Browse files
committed
[main] add missing newlines in logging
1 parent fac9b1c commit b78500f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main/src/rootbrowse.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int main(int argc, char **argv)
116116
gErrorIgnoreLevel = kError;
117117
file = std::unique_ptr<TFile>(TFile::Open(std::string(args.fFileName).c_str(), "READ"));
118118
if (!file || file->IsZombie()) {
119-
Err() << "File " << args.fFileName << " does not exist or is unreadable.";
119+
Err() << "File " << args.fFileName << " does not exist or is unreadable.\n";
120120
return 1;
121121
}
122122
gErrorIgnoreLevel = kUnset;

main/src/rootls.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static void PrintNodesDetailed(std::ostream &stream, const RootLsTree &tree,
380380
const auto &desc = reader->GetDescriptor();
381381
PrintRNTuple(stream, desc, indent + 2, desc.GetFieldZero());
382382
} else {
383-
Err() << "failed to read RNTuple object: " << child.fName;
383+
Err() << "failed to read RNTuple object: " << child.fName << "\n";
384384
}
385385
}
386386
}
@@ -703,7 +703,7 @@ static RootLsArgs ParseArgs(const char **args, int nArgs)
703703

704704
opts.Parse(args, nArgs);
705705
for (const auto &err : opts.GetErrors())
706-
Err() << err;
706+
Err() << err << "\n";
707707

708708
if (opts.GetSwitch("help")) {
709709
outArgs.fPrintUsageAndExit = RootLsArgs::EPrintUsage::kLong;

0 commit comments

Comments
 (0)