Skip to content
Snippets Groups Projects
Commit d01e61a2 authored by Mark Harrison's avatar Mark Harrison
Browse files

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
parent dea8cfad
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ sub reload_module {
warn @_;
};
# eval <$fh>;
do($file);
eval {do($file); die $@ if $@};
return $@ if $@;
return $redef;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment