Skip to content

Commit 72b3052

Browse files
committed
Fix reference to TEMPPATH in SLD error message
1 parent 28c8dae commit 72b3052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapogcsld.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int msSLDApplySLDURL(mapObj *map, char *szURL, int iLayer,
8181
pszSLDTmpFile = msTmpFile(map, NULL, NULL, "sld.xml" );
8282
}
8383
if (pszSLDTmpFile == NULL) {
84-
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);
84+
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);
8585
} else {
8686
int nMaxRemoteSLDBytes;
8787
const char *pszMaxRemoteSLDBytes = msOWSLookupMetadata(&(map->web.metadata), "MO", "remote_sld_max_bytes");
@@ -108,7 +108,7 @@ int msSLDApplySLDURL(mapObj *map, char *szURL, int iLayer,
108108
}
109109
} else {
110110
unlink(pszSLDTmpFile);
111-
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);
111+
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);
112112
}
113113
msFree(pszSLDTmpFile);
114114
if (pszSLDbuf)

0 commit comments

Comments
 (0)