Skip to content
Permalink
Browse files

Merge pull request #5799 from dbaston/fix-sld-error-message

Fix reference to TEMPPATH in SLD error message
  • Loading branch information...
jmckenna committed May 1, 2019
2 parents 28c8dae + 72b3052 commit 359fb45316db31f382cb5a273ba6e8c27dd100c0
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapogcsld.c
@@ -81,7 +81,7 @@ int msSLDApplySLDURL(mapObj *map, char *szURL, int iLayer,
pszSLDTmpFile = msTmpFile(map, NULL, NULL, "sld.xml" );
}
if (pszSLDTmpFile == NULL) {
msSetError(MS_WMSERR, "Could not determine temporary file %s. Please make sure that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings.", "msSLDApplySLDURL()", pszSLDTmpFile);
msSetError(MS_WMSERR, "Could not determine temporary file %s. Please make sure that the temporary path is set. The temporary path can be defined for example by setting TEMPPATH in the map file. Please check the MapServer documentation on temporary path settings.", "msSLDApplySLDURL()", pszSLDTmpFile);
} else {
int nMaxRemoteSLDBytes;
const char *pszMaxRemoteSLDBytes = msOWSLookupMetadata(&(map->web.metadata), "MO", "remote_sld_max_bytes");
@@ -108,7 +108,7 @@ int msSLDApplySLDURL(mapObj *map, char *szURL, int iLayer,
}
} else {
unlink(pszSLDTmpFile);
msSetError(MS_WMSERR, "Could not open SLD %s and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings.", "msSLDApplySLDURL", szURL);
msSetError(MS_WMSERR, "Could not open SLD %s and save it in a temporary file. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TEMPPATH in the map file. Please check the MapServer documentation on temporary path settings.", "msSLDApplySLDURL", szURL);
}
msFree(pszSLDTmpFile);
if (pszSLDbuf)

0 comments on commit 359fb45

Please sign in to comment.
You can’t perform that action at this time.