diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 15:32:40 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 17:24:55 +0100 |
| commit | df96a13d2c9b70bc18cec1b08eea5b2b068127d7 (patch) | |
| tree | 23b27e2ea8e5bd48cf23e545d89669c982b60f2a /src/transformations/tinshift.cpp | |
| parent | ab7b02702a25689a2dd81b25fc859424a2ffcec9 (diff) | |
| download | PROJ-df96a13d2c9b70bc18cec1b08eea5b2b068127d7.tar.gz PROJ-df96a13d2c9b70bc18cec1b08eea5b2b068127d7.zip | |
Various operations: remove explicit short name prefixing in log messages now that it is automatically added
Diffstat (limited to 'src/transformations/tinshift.cpp')
| -rw-r--r-- | src/transformations/tinshift.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transformations/tinshift.cpp b/src/transformations/tinshift.cpp index 8b73c28c..51e063eb 100644 --- a/src/transformations/tinshift.cpp +++ b/src/transformations/tinshift.cpp @@ -86,13 +86,13 @@ PJ *TRANSFORMATION(tinshift, 1) { const char *filename = pj_param(P->ctx, P->params, "sfile").s; if (!filename) { - proj_log_error(P, _("tinshift: +file= should be specified.")); + proj_log_error(P, _("+file= should be specified.")); return destructor(P, PROJ_ERR_INVALID_OP_MISSING_ARG); } auto file = NS_PROJ::FileManager::open_resource_file(P->ctx, filename); if (nullptr == file) { - proj_log_error(P, _("tinshift: Cannot open %s"), filename); + proj_log_error(P, _("Cannot open %s"), filename); return destructor(P, PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID); } file->seek(0, SEEK_END); @@ -101,14 +101,14 @@ PJ *TRANSFORMATION(tinshift, 1) { // that could be a denial of service risk. 10 MB should be sufficiently // large for any valid use ! if (size > 10 * 1024 * 1024) { - proj_log_error(P, _("tinshift: File %s too large"), filename); + proj_log_error(P, _("File %s too large"), filename); return destructor(P, PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID); } file->seek(0); std::string jsonStr; jsonStr.resize(static_cast<size_t>(size)); if (file->read(&jsonStr[0], jsonStr.size()) != jsonStr.size()) { - proj_log_error(P, _("tinshift: Cannot read %s"), filename); + proj_log_error(P, _("Cannot read %s"), filename); return destructor(P, PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID); } @@ -119,7 +119,7 @@ PJ *TRANSFORMATION(tinshift, 1) { try { Q->evaluator.reset(new Evaluator(TINShiftFile::parse(jsonStr))); } catch (const std::exception &e) { - proj_log_error(P, _("tinshift: invalid model: %s"), e.what()); + proj_log_error(P, _("invalid model: %s"), e.what()); return destructor(P, PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID); } |
