Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2646

Choice diagnostics too verbose

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.1
    • None
    • Back End, Diagnostics
    • None

    Description

      When a choice has been discriminated, the diagnostics if the discriminated branch fails should NOT include 

      Parse Error: All choice alternatives failed 

      Because a discriminator isolates things to one branch. 

      A choice could backtrack through a few alternatives, eventually hit a discriminator, and then fail. There may be branches that were never attempted (after the branch where the discriminator occurred) hence, it is simply wrong to say all alternatives failed, as there were potentially alternatives that were never tried. 

      But really, once a discriminator has been evaluated to true, then the choice should not be creating any diagnostics about the choice itself, or at worst it should be saying "Choice Discriminated Branch Failure" only about the one branch. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: