Skip to content

Commit

Permalink
wip: fail request when reload config fails
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Mar 22, 2024
1 parent 9a2383f commit 8310b73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Ravada/Domain/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3680,7 +3680,7 @@ sub reload_config($self, $doc) {
$new_domain = $self->_vm->vm->define_domain($doc->toString);
};

cluck ''.$@ if $@;
die $@."\n" if$@;

$self->domain($new_domain);

Expand Down
7 changes: 4 additions & 3 deletions templates/main/manage_machine_edit_video.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@

<div class="row">
<div class="col-lg-8 alert alert-warning"
ng-show="item.type=='cirrus' && !item.primary
ng-show="((item.type=='cirrus' || item.type=='vga')
&& !item.primary )
|| item.type=='none'
">
<span ng-show="item.type=='cirrus' && !item.primary">
<%=l "Video type 'cirrus' is only valid as primary video device" %>
<span ng-show="item.type=='cirrus' || item.type =='vga' && !item.primary">
<%=l "This video type is only valid as primary video device" %>
</span>

<span ng-show="item.type=='none'" >
Expand Down

0 comments on commit 8310b73

Please sign in to comment.