[GRASS-git] [OSGeo/grass] a4257a: g.download.location: Print target path in error me...
Markus Neteler
noreply at github.com
Mon Aug 19 15:25:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: a4257a13182275acb50609c43207970d48250da6
https://github.com/OSGeo/grass/commit/a4257a13182275acb50609c43207970d48250da6
Author: Markus Neteler <neteler at osgeo.org>
Date: 2024-08-19 (Mon, 19 Aug 2024)
Changed paths:
M scripts/g.download.location/g.download.location.html
M scripts/g.download.location/g.download.location.py
Log Message:
-----------
g.download.location: Print target path in error message (#4155)
* g.download.location: print target path in error message
To be less obscure in case the target location directory already exists:
```
ERROR: Location named <nc_spm_full_v2alpha2> already exists, download
canceled
```
this PR improves the error message to include the path:
```
g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME
ERROR: Location named <nc_spm_full_v2alpha2> already exists in
</home/mneteler/nc_spm_full_v2alpha2>, download canceled
```
This is esp. relevant for scripted usage when the command isn't invoked directly by the user.
In addition, section of **EXAMPLES** added.
* fix message format
Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>
* database -> project
Co-authored-by: Veronica Andreo <veroandreo at gmail.com>
---------
Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>
Co-authored-by: Veronica Andreo <veroandreo at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list