summaryrefslogtreecommitdiff
path: root/src/load.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2018-08-04 12:20:11 -0400
committerPaul Smith <psmith@gnu.org>2018-08-04 12:37:19 -0400
commitfa937343f5e0c8ea131d321118b31621413ab1d2 (patch)
treec960bee5ccdae8d0f12ea0acef91db4b9544c218 /src/load.c
parent3112c8799358cb5d051e0b63d0e916357169942c (diff)
downloadmake-git-fa937343f5e0c8ea131d321118b31621413ab1d2.tar.gz
Clean up errors for invalid commands and add regression tests.
* src/function.c (func_shell_base): Use error() instead of recreating the error output. * src/job.c (exec_command): Show more standard error messages. * src/load.c (unload_file): Fix whitespace in the error message. * tests/scripts/features/errors: Add tests for starting non- existent commands and new error message formats. * tests/scripts/features/output-sync: New error message formats. * tests/scripts/functions/shell: Ditto.
Diffstat (limited to 'src/load.c')
-rw-r--r--src/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/load.c b/src/load.c
index ecf66cba..5ec87c6b 100644
--- a/src/load.c
+++ b/src/load.c
@@ -240,7 +240,7 @@ unload_file (const char *name)
if (streq (d->name, name) && d->dlp)
{
if (dlclose (d->dlp))
- perror_with_name ("dlclose", d->name);
+ perror_with_name ("dlclose: ", d->name);
d->dlp = NULL;
break;
}