summaryrefslogtreecommitdiff
path: root/src/core/transaction.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-09 22:22:52 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 13:01:08 +0200
commitcf99f8eacf1c864b19a6a02edea78c43f3185cb7 (patch)
treea528e1de96e6567e228ee6a81894be3e70651f81 /src/core/transaction.c
parent068981233111fd657639687a1742e5f351d04a05 (diff)
downloadsystemd-cf99f8eacf1c864b19a6a02edea78c43f3185cb7.tar.gz
core: make destructive transaction error a bit more useful
Diffstat (limited to 'src/core/transaction.c')
-rw-r--r--src/core/transaction.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c
index 045930838b..486c6a4a05 100644
--- a/src/core/transaction.c
+++ b/src/core/transaction.c
@@ -526,7 +526,9 @@ static int transaction_is_destructive(Transaction *tr, JobMode mode, sd_bus_erro
if (j->unit->job && (mode == JOB_FAIL || j->unit->job->irreversible) &&
job_type_is_conflicting(j->unit->job->type, j->type))
return sd_bus_error_setf(e, BUS_ERROR_TRANSACTION_IS_DESTRUCTIVE,
- "Transaction is destructive.");
+ "Transaction for %s/%s is destructive (%s has '%s' job queued, but '%s' is included in transaction).",
+ tr->anchor_job->unit->id, job_type_to_string(tr->anchor_job->type),
+ j->unit->id, job_type_to_string(j->unit->job->type), job_type_to_string(j->type));
}
return 0;