@feigi/fleet-ctl 3.30.6 → 3.30.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/board.mjs +8 -1
package/package.json
CHANGED
package/scripts/board.mjs
CHANGED
|
@@ -983,7 +983,14 @@ function readOmpSpend(dir, sinceMs) {
|
|
|
983
983
|
toolTables.push(tools);
|
|
984
984
|
} catch (e) {
|
|
985
985
|
skipped++;
|
|
986
|
-
|
|
986
|
+
// The prefix already names `file`; Node's errno text (`..., open|stat
|
|
987
|
+
// '<file>'`) and member-record's shape refusal (`...: <file>`) end in
|
|
988
|
+
// it too, so that tail is dropped. Any other wording prints whole.
|
|
989
|
+
let why = String(e.message);
|
|
990
|
+
for (const tail of [` '${file}'`, `: ${file}`]) {
|
|
991
|
+
if (why.endsWith(tail)) { why = why.slice(0, -tail.length); break; }
|
|
992
|
+
}
|
|
993
|
+
warnOnce("skips", file, `skipping ${file}: ${why}`);
|
|
987
994
|
}
|
|
988
995
|
}
|
|
989
996
|
return { agents, toolTables, skipped, damaged };
|