From: Barış Metin Date: Fri, 27 Nov 2009 14:06:32 +0000 (+0000) Subject: display error when failed to update interface. X-Git-Tag: PLEWWW-4.3-40~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70489a7ced62033374416a119961f29c62d33e02;p=plewww.git display error when failed to update interface. --- diff --git a/planetlab/common/actions.php b/planetlab/common/actions.php index c93a326..ffb6bc1 100644 --- a/planetlab/common/actions.php +++ b/planetlab/common/actions.php @@ -455,7 +455,7 @@ switch ($action) { if ($result == 1 ) drupal_set_message ("Interface $interface_id updated"); else - drupal_set_error ("Could not update interface"); + drupal_set_error ("Could not update interface: " . $api->error()); plc_redirect (l_interface($interface_id)); }