#989496 apt-listchanges: Clarify error message when choosing to not continue

#989496#5
Date:
2021-06-05 11:00:04 UTC
From:
To:
Dear Maintainer,

After reading list of changes decided not to upgrade, so chose 'n' when
asked. As such apt-listchanges aborted as it should, only issue is that
after that it would output error message

Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n] n
apt-listchanges: Aborting
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10

There is no issues in functionality after that if run again.

#989496#10
Date:
2021-06-30 07:40:26 UTC
From:
To:
Tia,

Thank you for reporting this bug.  I can confirm that this is an issue:

apt-listchanges: Do you want to continue? [Y/n] n
apt-listchanges: Aborting
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an
error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10

I believe I have found the issue and have a fix ready to go.  I'll
set the status to pending.

#989496#17
Date:
2021-07-05 22:04:54 UTC
From:
To:
It was brought to my attention by David K. (thank you, David), that the
what you are seeing is intended functionality.  I proposed in the email
thread with David that we could improve the error message, since right
now it may be confusing to users that it is actually expected behavior.
A cleaner, clearer error message should resolve any confusion.

I will CC you Tia.

#989496#30
Date:
2021-07-09 02:14:56 UTC
From:
To:
Since this is expected behavior, I am tagging as "wontfix".

I don't think it's a good idea to suppress the error message.
apt-listchanges gives an "Aborting" message prior to throwing the error.

#989496#35
Date:
2023-10-03 01:08:34 UTC
From:
To:
I am confused about why this is filed against apt-listchanges rather
than apt. It's apt that's generating the error message when the
apt-listchanges command exits with a non-zero status. There's no way
apt-listchanges can influence what the error looks like; if we want it
to be prettier, we'll have to change apt. Am I missing something?