Opened 20 years ago
Closed 20 years ago
#695 closed defect (fixed)
Need better handling of errors in config files ("invalid item")
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | objects | Version: | 0.9.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Errors in .cnf files (e.g. STR not F32) give errors like:
psError(PS_ERR_UNKNOWN, true, "invalid item");
and then crash
The error message should be more informative (the variable name; the fact that
this is a type error), and the error shouldn't be fatal --- or if it is, I'd rather have
a SIGABRT than a SIGSEGV!
Change History (3)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Owner: | changed from to |
|---|
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
I believe this is taken care of. MetadataConfigFormat was changed earlier in
another bug, so if there is still some problem with that please let me know the
specifics. I searched for the error lines referred to here and these have been
updated as well.
Note:
See TracTickets
for help on using tickets.

this is a problem with psMetadataConfigRead : the segfault is an actual bug,
while the uninformative errors just require work to provide more detail.