| 957 | */ |
| 958 | |
| 959 | const char *CPL_STDCALL CPLGetLastErrorMsg() |
| 960 | { |
| 961 | CPLErrorContext *psCtx = CPLGetErrorContext(); |
| 962 | if (psCtx == nullptr) |
| 963 | return ""; |
| 964 | |
| 965 | return psCtx->szLastErrMsg; |
| 966 | } |
| 967 | |
| 968 | /********************************************************************** |
| 969 | * CPLGetErrorCounter() |
nothing calls this directly
no test coverage detected