[GRASS-git] [OSGeo/grass] f947d5: libgis: Mention session in the missing GISRC messa...

Vaclav Petras noreply at github.com
Thu Jan 27 06:39:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: f947d5ced541ef0b2c3072c9622c429c70dc89b5
      https://github.com/OSGeo/grass/commit/f947d5ced541ef0b2c3072c9622c429c70dc89b5
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-01-27 (Thu, 27 Jan 2022)

  Changed paths:
    M lib/gis/env.c

  Log Message:
  -----------
  libgis: Mention session in the missing GISRC message (#2124)

This links the missing GISRC environment variable to a GRASS session in the error message. In case the error message appears without much context, it says GRASS session rather than just session. It says active session to emphasize that a finished/ended/closed session is not good enough which is likely the context when users may encounter the message (besides the case with GRASS runtime set up, but without an open/connected mapset).

The message now says environment variable instead of just variable and leaves out the dash/hyphen for better flow of the sentence. The format of the message is issue-colon-reason.

This is highly relevant to Jupyter notebooks, but it applies to the standard _grass.script.setup.init_ function as well.




More information about the grass-commit mailing list