[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master b335cc25: Library (tableintern.c): message wit
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master b335cc25: Library (tableintern.c): message with bad column name fixed |
Date: |
Thu, 30 Nov 2023 11:03:11 -0500 (EST) |
branch: master
commit b335cc25c2ccfae4b5dd4698312dd4292f389512
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Library (tableintern.c): message with bad column name fixed
When Table is given a column name that does not match the names of the
columns of its input it will recommend to use '--info' (as shown in the the
message in the P.S.). However, given the newly added Table options that
start with '--info' (for example '--info-num-cols' or '--info-num-rows'),
the '--info' suggestion is be to be ambiguous and Table will ask to be more
clear! This can be confusing for a new user and should be corrected.
With this commit, we are now using the full version of the option
('--information') in the error message.
This bug was reported by Sepideh Eskandarlou.
This fixes
---
NEWS | 3 ++-
lib/tableintern.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 45996b13..277a0534 100644
--- a/NEWS
+++ b/NEWS
@@ -140,7 +140,8 @@ See the end of the file for license conditions.
by Sepideh Eskandarlou.
- bug #64915: Segment's SKY_STD output HDU does not have WCS; reported by
Sepideh Eskandarlou.
-
+ - bug #64952: Table error message for incorrect column name was not
+ complete; reported by Sepideh Eskandarlou.
diff --git a/lib/tableintern.c b/lib/tableintern.c
index a674dcd3..9a7d4225 100644
--- a/lib/tableintern.c
+++ b/lib/tableintern.c
@@ -73,7 +73,7 @@ gal_tableintern_error_col_selection(char *filename, char *hdu,
"To define a better column selection criteria, you can see "
"the list of column meta-data in this table, with the following "
"command:\n\n"
- " $ asttable %s --info\n", name, errorstring, command);
+ " $ asttable %s --information\n", name, errorstring, command);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master b335cc25: Library (tableintern.c): message with bad column name fixed,
Mohammad Akhlaghi <=