Menu

#343 Improve SimpleDelimitedFieldFormat Type Field

0.49
open
Undefined
Undefined
2020-04-13
2020-04-13
No

Improve the error message for a To-StandardXML operation in SimpleDelimitedFieldFormat; this should report the field and record # generating the error. The current message is not informative.

  File "build/bdist.linux-x86_64/egg/coils/logic/workflow/formats/simple_delimited_field_format.py", line 515, in process_out
    for keys, fields, in StandardXML.Read_Rows(rfile):
  File "build/bdist.linux-x86_64/egg/coils/foundation/standard_xml.py", line 237, in Read_Rows
    element, fallback_to_text=fallback_to_text,
  File "build/bdist.linux-x86_64/egg/coils/foundation/standard_xml.py", line 57, in Convert_Field_To_Value
    value = float(value)
TypeError: float() argument must be a string or a number

Discussion

  • Adam Tauno Williams

    delta 123a29e09480221bf0b978f76fed776483f3b5d8

    a dump of all the Format's attributes is now included in the exception/backtrace from an exception in a Format read/write via attachfs

    Now, does a Format at point of exception set any helpful information. This is probably best addresses within the vulnerable section of each Format class.

     
  • Adam Tauno Williams

    • labels: --> Workflow, Format, error-message, error-handling
    • assigned_to: Adam Tauno Williams
     

Log in to post a comment.

MongoDB Logo MongoDB