From 8134d9132984f9a0905ac3388a92c8415d6024f8 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 1 May 2006 12:05:45 +0000 Subject: [PATCH] Correct error messages. MFC after: 2 weeks --- sbin/geom/class/eli/geom_eli.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/geom/class/eli/geom_eli.c b/sbin/geom/class/eli/geom_eli.c index c4577a116c50..e71adc9e4d02 100644 --- a/sbin/geom/class/eli/geom_eli.c +++ b/sbin/geom/class/eli/geom_eli.c @@ -505,7 +505,7 @@ eli_init(struct gctl_req *req) nargs = gctl_get_int(req, "nargs"); if (nargs != 1) { - gctl_error(req, "Too few arguments."); + gctl_error(req, "Invalid number of arguments."); return; } prov = gctl_get_ascii(req, "arg0"); @@ -611,7 +611,7 @@ eli_attach(struct gctl_req *req) nargs = gctl_get_int(req, "nargs"); if (nargs != 1) { - gctl_error(req, "Too few arguments."); + gctl_error(req, "Invalid number of arguments."); return; } prov = gctl_get_ascii(req, "arg0"); @@ -756,7 +756,7 @@ eli_setkey(struct gctl_req *req) nargs = gctl_get_int(req, "nargs"); if (nargs != 1) { - gctl_error(req, "Too few arguments."); + gctl_error(req, "Invalid number of arguments."); return; } prov = gctl_get_ascii(req, "arg0"); @@ -830,7 +830,7 @@ eli_delkey(struct gctl_req *req) nargs = gctl_get_int(req, "nargs"); if (nargs != 1) { - gctl_error(req, "Too few arguments."); + gctl_error(req, "Invalid number of arguments."); return; } prov = gctl_get_ascii(req, "arg0");