Skip to content

Commit fea32f2

Browse files
committed
Fix - do not raise error in treeProcess
1 parent 75ade10 commit fea32f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/tree.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,8 @@ async function treeProcess(tree, selector, args) {
15531553

15541554
if (!selector || !tree.$file || !selector.numBranches()) {
15551555
if (selector) selector.Terminate(false);
1556-
return Promise.reject(Error('required parameter missing for TTree::Process'));
1556+
console.error('required parameter missing for TTree::Process');
1557+
return null;
15571558
}
15581559

15591560
// central handle with all information required for reading
@@ -2141,7 +2142,8 @@ async function treeProcess(tree, selector, args) {
21412142

21422143
if (!item) {
21432144
selector.Terminate(false);
2144-
return Promise.reject(Error(`Fail to add branch ${selector.nameOfBranch(nn)}`));
2145+
console.error(`Fail to add branch ${selector.nameOfBranch(nn)}`);
2146+
return null;
21452147
}
21462148
}
21472149

@@ -2168,7 +2170,8 @@ async function treeProcess(tree, selector, args) {
21682170

21692171
if (handle.firstentry >= handle.lastentry) {
21702172
selector.Terminate(false);
2171-
return Promise.reject(Error('No any common events for selected branches'));
2173+
console.error('No any common events for selected branches');
2174+
return null;
21722175
}
21732176

21742177
handle.process_min = handle.firstentry;

0 commit comments

Comments
 (0)