Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use ERROR_BAD_ARG macro in pkg_script_run()
Philippe Pepiot committed 14 years ago
commit 393501eeac271a48509628581c697cd2724328ff
parent 7fd834b
1 file changed +1 -1
modified libpkg/scripts.c
@@ -30,7 +30,7 @@ pkg_script_run(struct pkg *pkg, pkg_script_t type)
	}

	if (map[i].a != type)
-
		return (pkg_error_set(EPKG_FATAL, "bad type arg (%d)", type));
+
		return (ERROR_BAD_ARG("type"));

	while (pkg_scripts(pkg, &script) == EPKG_OK) {