Bug 375615 - "Failed to update alarm" error message appears after command alarm fails
Summary: "Failed to update alarm" error message appears after command alarm fails
Status: CLOSED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: 2.11.10
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-27 13:56 UTC by David Jarvie
Modified: 2021-01-09 17:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: KDE Applications 16.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Jarvie 2017-01-27 13:56:24 UTC
When a command alarm can't be executed (e.g. if the command to execute can't be found), in addition to the error message saying that execution failed, an additional, unnecessary error message "Failed to update alarm" is displayed. This only happens with a non-recurring alarm.
Comment 1 David Jarvie 2017-01-29 21:17:04 UTC
The reason was that the alarm was deleted before the command execution result was known. The alarm's execution status was then updated, but the alarm no longer existed, so the error was produced. KAlarm now checks if the alarm has already been deleted before attempting to update its status.

KAlarm version 2.11.13, commit 6cd6bbae49a4eff15da8d46e11f253b00245693c (Applications/16.12 branch).