# HG changeset patch # User Sascha Wilde # Date 1396437424 -7200 # Node ID 539c856cb5da2258ac4608c65edff47dec42b3d3 # Parent 22408d797c92869f4e4d3072d5ee7723299feee0 Ditched warning about no profiles for separate failed add/remove warnings. diff -r 22408d797c92 -r 539c856cb5da cinst/mozilla.c --- a/cinst/mozilla.c Wed Apr 02 13:10:40 2014 +0200 +++ b/cinst/mozilla.c Wed Apr 02 13:17:04 2014 +0200 @@ -270,7 +270,6 @@ if (inis == NULL) { DEBUGPRINTF("No ini files found - will do nothing!\n"); - exit(WARN_MOZ_NO_PROFILES); } return inis; } @@ -556,7 +555,7 @@ { puts(pdirs[i]); if (! remove_cert(pdirs[i], secitemp)) - return_code |= WARN_MOZ_COULD_NOT_ADD_OR_REMOVE_CERT; + return_code |= WARN_MOZ_COULD_NOT_REMOVE_CERT; puts("List of installed certs:"); nss_list_certs(pdirs[i]); } @@ -570,7 +569,7 @@ { puts(pdirs[i]); if (! import_cert(pdirs[i], secitemp)) - return_code |= WARN_MOZ_COULD_NOT_ADD_OR_REMOVE_CERT; + return_code |= WARN_MOZ_COULD_NOT_ADD_CERT; nss_list_certs(pdirs[i]); } free(secitemp->data); diff -r 22408d797c92 -r 539c856cb5da common/errorcodes.h --- a/common/errorcodes.h Wed Apr 02 13:10:40 2014 +0200 +++ b/common/errorcodes.h Wed Apr 02 13:17:04 2014 +0200 @@ -37,9 +37,9 @@ #define WARN_MOZ_FAILED_TO_OPEN_INI 0x0091 /* Warning: Some profile paths from profile.ini don't exist */ #define WARN_MOZ_PROFILE_DOES_NOT_EXIST 0x0092 -/* Warning: no profiles found */ -#define WARN_MOZ_NO_PROFILES 0x0094 -/* Warning: no profiles found */ -#define WARN_MOZ_COULD_NOT_ADD_OR_REMOVE_CERT 0x0098 +/* Warning: could not install some certs */ +#define WARN_MOZ_COULD_NOT_ADD_CERT 0x0094 +/* Warning: could not remove some certs */ +#define WARN_MOZ_COULD_NOT_REMOVE_CERT 0x0098 #endif