diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2010-06-14 11:57:08 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-06-14 11:57:08 +0000 |
| commit | e6f14352d61721db83b46e0e56c4d19b731fed95 (patch) | |
| tree | 7bf7741f5c63b956dde1bfbbdc2da8d587ce2a7d /Src/module.c | |
| parent | 28010: use getcwd() as fallback for zgetcwd() (diff) | |
| download | zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar.gz zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar.bz2 zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar.lz zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar.xz zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.tar.zst zsh-e6f14352d61721db83b46e0e56c4d19b731fed95.zip | |
28037: improved error messages for module autoloads
of math functions and builtins
Diffstat (limited to 'Src/module.c')
| -rw-r--r-- | Src/module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/module.c b/Src/module.c index 4f71153b7..219bdfa8e 100644 --- a/Src/module.c +++ b/Src/module.c @@ -1273,7 +1273,10 @@ getmathfunc(const char *name, int autol) (void)ensurefeature(n, "f:", (flags & MFF_AUTOALL) ? NULL : name); - return getmathfunc(name, 0); + p = getmathfunc(name, 0); + if (!p) { + zerr("autoloading module %s failed to define math function: %s", n, name); + } } return p; } |
