[GRASS-git] [OSGeo/grass] f86bec: v.in.ascii: include values into error messages (#...

Vaclav Petras noreply at github.com
Thu Aug 22 19:24:49 PDT 2019

  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: f86bec85d4bdaadec35a53b1a00f768ace0f4fb2
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2019-08-22 (Thu, 22 Aug 2019)

  Changed paths:
    M vector/v.in.ascii/local_proto.h
    M vector/v.in.ascii/main.c
    M vector/v.in.ascii/points.c

  Log Message:
   v.in.ascii: include values into error messages (#104)

Not only the column, but also the value is now part of
the message about type since the value influenced the type
which makes it easier to find the issue. It reports the value for
the main columns such as x and y, and also for any mismatch
in requested and actual value types.

It stores first encountered value as sample for
all types and stores NULL for empty columns.
Type is used for (other) attribute columns type errors
while NULLs to avoid message about integers in data
given for empty columns which was confusing.

Uses single quotes around data which is according to
the Submitting rules (MessageStandardization) which require
single quotes around strings, but does not apply rules otherwise
to be consistent(ly wrong together) with most of v.in.ascii.

Also unify function parameters and line breaks.

More information about the grass-commit mailing list