fix error message for invalid "uri" args

This commit is contained in:
Pierangelo Masarati 2005-10-15 12:33:04 +00:00
parent 9bc19c5232
commit a16521ed4e

View File

@ -113,10 +113,21 @@ meta_back_db_config(
int rc;
int c;
if ( argc != 2 ) {
switch ( argc ) {
case 1:
fprintf( stderr,
"%s: line %d: missing address"
" in \"uri <protocol>://<server>[:port]/<naming context>\" line\n",
"%s: line %d: missing URI "
"in \"uri <protocol>://<server>[:port]/<naming context>\" line\n",
fname, lineno );
return 1;
case 2:
break;
default:
fprintf( stderr,
"%s: line %d: too many args "
"in \"uri <protocol>://<server>[:port]/<naming context>\" line\n",
fname, lineno );
return 1;
}