Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
g.download.location: Print target path in error message (OSGeo#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 <[email protected]> * database -> project Co-authored-by: Veronica Andreo <[email protected]> --------- Co-authored-by: Vaclav Petras <[email protected]> Co-authored-by: Veronica Andreo <[email protected]>
- Loading branch information