Skip to content

Commit

Permalink
Add previous exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Mar 28, 2024
1 parent 0d456bf commit 2d63bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SnmpDiscoveryCollector.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ protected static function LoadIPAddresses(string $sClass, string $sKeySpec): arr
} else Utils::Log(LOG_DEBUG, sprintf('Skipping non responding IP %s.', $aIPAddress['fields']['ip']));
}
} catch (Exception $e) {
throw new Exception(sprintf('Could not load %s: %s', $sClass, $e->getMessage()));
throw new Exception(sprintf('Could not load %s: %s', $sClass, $e->getMessage()), 0, $e);
}

return $aIPAddresses;
Expand Down

0 comments on commit 2d63bac

Please sign in to comment.