Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.info: Add vector name to no db connection message #2434

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

wenzeslaus
Copy link
Member

The error messegage about missing database connection for a given layer does not include vector name which may not be clear when scripting and an undelying function calls v.info.

@wenzeslaus wenzeslaus added this to the 8.4.0 milestone Jun 16, 2022
@wenzeslaus wenzeslaus added the C Related code is in C label Jun 16, 2022
@wenzeslaus wenzeslaus marked this pull request as draft July 26, 2022 16:41
@neteler
Copy link
Member

neteler commented Aug 28, 2022

Is anything still missing here (as it is a draft PR)?

@wenzeslaus
Copy link
Member Author

The code does not compile, but the conceptual issue here is that similar message is at many other places, but there it is not possible to get vector map name so easily.

@wenzeslaus wenzeslaus marked this pull request as ready for review February 10, 2023 19:23
@wenzeslaus
Copy link
Member Author

The code issue is fixed now, but I'm not sure if to introduce this message when we have similar messages but without that additional info. Maybe better more info here is better than consistency with less info.

@wenzeslaus wenzeslaus added the enhancement New feature or request label Feb 10, 2023
The error messegage about missing database connection for a given layer does not include vector name which may not be clear when scripting and an undelying function calls v.info.
@wenzeslaus wenzeslaus merged commit 29cd640 into OSGeo:main Feb 15, 2023
@wenzeslaus wenzeslaus deleted the vector-name-for-no-table branch February 15, 2023 03:35
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
The error message about missing database connection for a given layer does not include vector name which may not be clear when scripting or when getting the errors from underlying calls to v.info.
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
The error message about missing database connection for a given layer does not include vector name which may not be clear when scripting or when getting the errors from underlying calls to v.info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants