Changeset d01e61a2672b9a73b39467a16a37e0aac5b7ee40
- Timestamp:
- 06/02/08 18:13:29
(5 years ago)
- Author:
- Mark Harrison <mark@omniti.com>
- git-committer:
- Mark Harrison <mark@omniti.com> 1212430409 +0000
- git-parent:
[dea8cfad263f3915a086c4fb0194ae1aab3c52d9]
- git-author:
- Mark Harrison <mark@omniti.com> 1212430409 +0000
- Message:
Wrapping the do command in the module reloading code in an eval so any
failures in that command (as happens if trying to load a non-existent module
when one is specified in the config file) will not crash the program.
git-svn-id: https://labs.omniti.com/resmon/trunk@119 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r40149ad |
rd01e61a |
|
| 93 | 93 | }; |
|---|
| 94 | 94 | # eval <$fh>; |
|---|
| 95 | | do($file); |
|---|
| | 95 | eval {do($file); die $@ if $@}; |
|---|
| 96 | 96 | return $@ if $@; |
|---|
| 97 | 97 | return $redef; |
|---|