diff --git a/html/pages/delhost.inc.php b/html/pages/delhost.inc.php
index f7f9d750d..cb4cd5675 100644
--- a/html/pages/delhost.inc.php
+++ b/html/pages/delhost.inc.php
@@ -20,12 +20,13 @@ if (is_numeric($_REQUEST['id']))
else
{
$device = device_by_id_cache($_REQUEST['id']);
- print_message("Are you sure you want to delete device " . $device['hostname'] . "?");
+ print_error("Are you sure you want to delete device " . $device['hostname'] . "?");
?>