Skip to content

Commit d3e582b

Browse files
committed
Show a more useful error if the backup has finished
1 parent 61f7782 commit d3e582b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: kill_running.cgi

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ foreach $sid_pid (@d) {
1313
($sid, $pid) = split(/-/, $sid_pid);
1414
($sched) = grep { $_->{'id'} eq $sid &&
1515
$_->{'pid'} == $pid } @running;
16-
$sched && &can_backup_sched($sched) ||
16+
$sched || &error(&text('dsched_erunning', $sid));
17+
&can_backup_sched($sched) ||
1718
&error(&text('dsched_ecannot', $sid));
1819
push(@scheds, $sched);
1920
}

Diff for: lang/en

+1
Original file line numberDiff line numberDiff line change
@@ -5804,6 +5804,7 @@ cron_ehidden=No complex schedule was selected
58045804
dsched_err=Failed to delete scheduled backups
58055805
dsched_enone=None selected
58065806
dsched_egone=The backup with ID $1 no longer exists
5807+
dsched_erunning=The backup with ID $1 is no longer running
58075808
dsched_ecannot=You are not allowed to manage the backup with ID $1
58085809

58095810
dbhosts_err=Failed to change remote database hosts

0 commit comments

Comments
 (0)