mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Better device:add error output (#13913)
* Better device:add error output * for addhost.php too
This commit is contained in:
@@ -139,7 +139,7 @@ class DeviceAdd extends LnmsCommand
|
||||
return 3;
|
||||
} catch (Exception $e) {
|
||||
// other errors?
|
||||
$this->error(get_class($e) . ': ' . $e->getMessage());
|
||||
$this->error("Error: $e");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user