/* Create an error reply, using the error information from changes[]
* if possible, and fall back to generating an error from error code c.
* The error message only describes the first error.
- *
- * Coordinate with install_changes_dump() in install.c.
*/
static int install_error(
sd_bus_error *error,
for (size_t i = 0; i < n_changes; i++)
- switch (changes[i].type) {
+ /* When making changes here, make sure to also change install_changes_dump() in install.c. */
+ switch (changes[i].type) {
case 0 ... _INSTALL_CHANGE_TYPE_MAX: /* not errors */
break;
for (size_t i = 0; i < n_changes; i++) {
assert(verb || changes[i].type >= 0);
+ /* When making changes here, make sure to also change install_error() in dbus-manager.c. */
+
switch (changes[i].type) {
case INSTALL_CHANGE_SYMLINK:
if (!quiet)