display error when failed to update interface.
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 27 Nov 2009 14:06:32 +0000 (14:06 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Fri, 27 Nov 2009 14:06:32 +0000 (14:06 +0000)
planetlab/common/actions.php

index c93a326..ffb6bc1 100644 (file)
@@ -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));
  }