From 829a134d7e11f09b913f27dfce9aafef7d01d76f Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 8 Jul 1999 14:36:37 +0000 Subject: [PATCH] better error message if asInit fails --- src/as/asDbLib.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/as/asDbLib.c b/src/as/asDbLib.c index 099a01c57..df003e308 100644 --- a/src/as/asDbLib.c +++ b/src/as/asDbLib.c @@ -114,7 +114,11 @@ static long asInitCommon(void) firstTime = FALSE; if(!pacf) return(0); /*access security will NEVER be turned on*/ } else { - if(!asActive) return(S_asLib_asNotActive); + if(!asActive) { + printf("Access security is NOT enabled." + " Was asSetFilename specified before iocInit?\n"); + return(S_asLib_asNotActive); + } if(pacf) { asCaStop(); } else { /*Just leave everything as is */ @@ -131,9 +135,6 @@ static long asInitCommon(void) int asInit(void) { - - /*If no access configuration file defined return success*/ - if(!pacf) return(0); return(asInitCommon()); }