omp-config-crypt 0.6.4 → 0.6.5
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/src/sync-transaction.js +8 -2
package/package.json
CHANGED
package/src/sync-transaction.js
CHANGED
|
@@ -397,15 +397,21 @@ export function commitFileTransaction(root, transaction, lock) {
|
|
|
397
397
|
|
|
398
398
|
export function applySyncPlan(plan, root = configRoot()) {
|
|
399
399
|
if (plan.conflicts && plan.conflicts.length > 0) {
|
|
400
|
+
const detail = plan.conflicts
|
|
401
|
+
.map((c) => `${c.id || "(unknown)"}: ${c.reason}`)
|
|
402
|
+
.join("; ");
|
|
400
403
|
const err = new Error(
|
|
401
|
-
`Cannot apply sync plan: ${plan.conflicts.length} conflict(s) detected.`
|
|
404
|
+
`Cannot apply sync plan: ${plan.conflicts.length} conflict(s) detected (${detail}).`
|
|
402
405
|
);
|
|
403
406
|
err.conflicts = plan.conflicts;
|
|
404
407
|
throw err;
|
|
405
408
|
}
|
|
406
409
|
if (plan.blocked && plan.blocked.length > 0) {
|
|
410
|
+
const detail = plan.blocked
|
|
411
|
+
.map((b) => `${b.id || "(unknown)"}: ${b.reason}`)
|
|
412
|
+
.join("; ");
|
|
407
413
|
const err = new Error(
|
|
408
|
-
`Cannot apply sync plan: ${plan.blocked.length} action(s) are blocked.`
|
|
414
|
+
`Cannot apply sync plan: ${plan.blocked.length} action(s) are blocked (${detail}).`
|
|
409
415
|
);
|
|
410
416
|
err.blocked = plan.blocked;
|
|
411
417
|
throw err;
|