diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-03-23 14:24:33 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-03-23 14:24:33 +0000 |
commit | 11bbce3a66aeb8c2b8832a8ee1657e3fa2e8dc4b (patch) | |
tree | abcb6f075da7a3cf3b49adebf1b5508357d3eaef /Src | |
parent | 949152124b559855a58e02c462f13cbc662f64c9 (diff) | |
download | zsh-11bbce3a66aeb8c2b8832a8ee1657e3fa2e8dc4b.tar.gz zsh-11bbce3a66aeb8c2b8832a8ee1657e3fa2e8dc4b.tar.xz zsh-11bbce3a66aeb8c2b8832a8ee1657e3fa2e8dc4b.zip |
23232: minor tweaks to zmodload
Diffstat (limited to 'Src')
-rw-r--r-- | Src/module.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Src/module.c b/Src/module.c index fa6d50c6e..ffa659efc 100644 --- a/Src/module.c +++ b/Src/module.c @@ -439,11 +439,8 @@ do_load_module(char const *name, int silent) void *ret; ret = try_load_module(name); - if (!ret && !silent) { - int waserr = errflag; - zerr("failed to load module: %s", name); - errflag = waserr; - } + if (!ret && !silent) + zwarn("failed to load module: %s", name); return ret; } @@ -454,11 +451,8 @@ do_load_module(char const *name, int silent) static void * do_load_module(char const *name, int silent) { - int waserr = errflag; - if (!silent) - zerr("failed to load module: %s", name); - errflag = waserr; + zwarn("failed to load module: %s", name); return NULL; } |