Add op names to processing exception

This commit is contained in:
M66B 2022-02-18 10:14:50 +01:00
parent 0d248e9265
commit c3703c32cf
1 changed files with 6 additions and 2 deletions

View File

@ -750,8 +750,12 @@ class Core {
}
}
if (ops.size() != 0 && state.getSerial() == serial)
state.error(new OperationCanceledException("Processing"));
if (ops.size() != 0 && state.getSerial() == serial) {
List<String> names = new ArrayList<>();
for (EntityOperation op : ops)
names.add(op.name);
state.error(new OperationCanceledException("Processing " + TextUtils.join(",", names)));
}
} finally {
Log.i(folder.name + " end process state=" + state + " pending=" + ops.size());
}