Permalink
Browse files

Adding a more descriptive message in case of multiple error occurrence (

  • Loading branch information...
szekerest committed Jul 24, 2014
1 parent 8d8f22f commit 2a3ec0a65a3694ce89fc0bb0b9f6fee71d6ae7da
Showing with 2 additions and 2 deletions.
  1. +2 −2 maperror.c
View
@@ -290,14 +290,14 @@ char *msAddErrorDisplayString(char *source, errorObj *error)
if((source = msStringConcatenate(source, error->message)) == NULL) return(NULL);
if (error->errorcount > 0) {
char* pszTmp;
if((source = msStringConcatenate(source, " (")) == NULL) return(NULL);
if((source = msStringConcatenate(source, " (message repeated ")) == NULL) return(NULL);
pszTmp = msIntToString(error->errorcount);
if((source = msStringConcatenate(source, pszTmp)) == NULL) {
msFree(pszTmp);
return(NULL);
}
msFree(pszTmp);
if((source = msStringConcatenate(source, ")")) == NULL) return(NULL);
if((source = msStringConcatenate(source, " times)")) == NULL) return(NULL);
}
return source;

0 comments on commit 2a3ec0a

Please sign in to comment.