[GRASS-git] [OSGeo/grass] f69bb2: g.download.location: Print target path in error me...

Vaclav Petras noreply at github.com
Thu Aug 22 07:21:03 PDT 2024


  Branch: refs/heads/releasebranch_8_4
  Home:   https://github.com/OSGeo/grass
  Commit: f69bb284751ff1672268c1091952235aa37edb91
      https://github.com/OSGeo/grass/commit/f69bb284751ff1672268c1091952235aa37edb91
  Author: Markus Neteler <neteler at osgeo.org>
  Date:   2024-08-22 (Thu, 22 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>


  Commit: 1c65a94a39c024d1f780fada0aa0dca63b0de5fa
      https://github.com/OSGeo/grass/commit/1c65a94a39c024d1f780fada0aa0dca63b0de5fa
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M .github/workflows/macos.yml
    M .github/workflows/test_thorough.bat
    M .github/workflows/test_thorough.sh
    M scripts/Makefile
    M scripts/g.download.location/g.download.location.html
    M scripts/g.download.location/g.download.location.py
    A scripts/g.download.project/Makefile
    A scripts/g.download.project/g.download.project.html
    A scripts/g.download.project/g.download.project.py

  Log Message:
  -----------
  g.download.project: rename g.download.location (#4187)


  Commit: b4fea09aae66acfd64509ba76d2eecded8123b5b
      https://github.com/OSGeo/grass/commit/b4fea09aae66acfd64509ba76d2eecded8123b5b
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M scripts/g.download.location/g.download.location.py

  Log Message:
  -----------
  g.download.location: Fix typo in g.download.project call (#4205)

The underlying tool name was misspelled.


Compare: https://github.com/OSGeo/grass/compare/5ebf58ddca02...b4fea09aae66

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