Changeset 10913 for trunk/ippTools/src/pxadminConfig.c
- Timestamp:
- Jan 4, 2007, 6:29:34 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxadminConfig.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxadminConfig.c
r10440 r10913 34 34 35 35 config->modules = pmConfigRead(&argc, argv, NULL); 36 37 38 if (! config->modules) { 39 psErrorStackPrint(stderr, "Can't find site configuration!\n"); 40 exit(EXIT_FAILURE); 36 if (!config->modules) { 37 psError(PS_ERR_UNKNOWN, false, "Can't find site configuration"); 38 goto FAIL; 41 39 } 42 40 … … 80 78 psArgumentHelp(arguments); 81 79 psFree(arguments); 82 exit(EXIT_FAILURE);80 goto FAIL; 83 81 } 84 82 … … 86 84 psArgumentHelp(arguments); 87 85 psFree(arguments); 88 exit(EXIT_FAILURE);86 goto FAIL; 89 87 } 90 88 … … 95 93 psArgumentHelp(arguments); 96 94 psFree(arguments); 97 exit(EXIT_FAILURE);95 goto FAIL; 98 96 } 99 97 … … 104 102 if (!config->dbh) { 105 103 psError(PS_ERR_UNKNOWN, false, "Can't configure database"); 106 exit(EXIT_FAILURE);104 goto FAIL; 107 105 } 108 106 107 // save argv/argc 108 config->argv = argv; 109 config->argc = argc; 110 109 111 return config; 112 113 FAIL: 114 psFree(config); 115 pmConfigDone(); 116 psLibFinalize(); 117 exit(EXIT_FAILURE); 110 118 } 111 119
Note:
See TracChangeset
for help on using the changeset viewer.
