summaryrefslogtreecommitdiff
path: root/modules/commands/os_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_module.cpp')
-rw-r--r--modules/commands/os_module.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/os_module.cpp b/modules/commands/os_module.cpp
index 562e130aa..750a29bfa 100644
--- a/modules/commands/os_module.cpp
+++ b/modules/commands/os_module.cpp
@@ -111,7 +111,10 @@ class CommandOSModReLoad : public Command
else
{
if (fatal)
- throw FatalException("Unable to reload module " + mname);
+ {
+ quitmsg = "Unable to reload module " + mname;
+ quitting = true;
+ }
else
source.Reply(_("Unable to load module \002%s\002"), mname.c_str());
}