summaryrefslogtreecommitdiff
path: root/main/loader.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-02-19 21:54:09 +0000
committerJoshua Colp <jcolp@digium.com>2008-02-19 21:54:09 +0000
commitee5e39e04bf6c60119c7f0c4f016de9f31f11148 (patch)
treef352ec604bc16b9cd29dffd5ebaea1c168e096b4 /main/loader.c
parentc929c6abd9cf336572e890ff1390fbf53daae22a (diff)
Add a log message that appears when you try to unload a module that isn't loaded.
(closes issue #12033) Reported by: jamesgolovich Patches: asterisk-loader.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/loader.c')
-rw-r--r--main/loader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/loader.c b/main/loader.c
index 370e41fa4..79a716ec0 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -478,6 +478,7 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
if (!(mod = find_resource(resource_name, 0))) {
AST_LIST_UNLOCK(&module_list);
+ ast_log(LOG_WARNING, "Unload failed, '%s' could not be found\n", resource_name);
return 0;
}