Skip to content

Exception handling in interactive mode does not report cause #1285

@fmbenhassine

Description

@fmbenhassine

Reported by @gturner834 in #1259 (Point 7):

  • 3.4.1:
    shell:>cm certify --certificationDate 2025-11-18
    COSN021-003E:Period code is required, specified by either "cm certify --periodCd" or "xme config --periodCode" commands(srcApplicationId:CostAllocationApp)(correlationId:fc1063dc-32c5-424f-9687-033cba8cbfc7)
    Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace.
    
    • This exception was intentional, displayed perfectly in red color, and with working stacktrace command.
  • 4.0.0:
    shell:>cm certify --certificationDate 2025-11-18
    Unable to run command cm: null
    shell:>stacktrace
    Command stacktrace not found
    
    • The "null" message comes Shell not looking at the root cause of the TargetInvocationException.
    • The message is printed without color.
    • Also note the truncated command name "cm" instead of "cm certify".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions