Commit 9f1e575e authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#41] at least show the error

This happens if the domain has changed its name.
The user must have done this in the DB or in the VM
backend directly.
parent e98e508a
...@@ -663,7 +663,7 @@ sub _search_requested_machine { ...@@ -663,7 +663,7 @@ sub _search_requested_machine {
if !$id; if !$id;
my $domain = $RAVADA->search_domain_by_id($id) or do { my $domain = $RAVADA->search_domain_by_id($id) or do {
$c->stash( error => "Unknown base id=$id"); $c->stash( error => "Unknown domain id=$id");
return; return;
}; };
...@@ -730,6 +730,7 @@ sub view_machine { ...@@ -730,6 +730,7 @@ sub view_machine {
return login($c) if !_logged_in($c); return login($c) if !_logged_in($c);
$domain = _search_requested_machine($c) if !$domain; $domain = _search_requested_machine($c) if !$domain;
return $c->render(template => 'bootstrap/fail') if !$domain;
return show_link($c, $domain); return show_link($c, $domain);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment