Project

General

Profile

Bug #8893

Insufficient diagnostic info for a fhicl error

Added by Andrei Gaponenko over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Application
Target version:
Start date:
05/21/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Occurs In:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
art
Duration:

Description

Using the attached typo.fcl

$ mu2e -c typo.fcl
%MSG-i MF_INIT_OK:  mu2e 21-May-2015 16:48:40 CDT JobSetup
Messagelogger initialization complete.
%MSG
%MSG-s ArtException:  mu2e 21-May-2015 16:48:45 CDT JobSetup
cet::exception caught in art
---- Type mismatch BEGIN
  filter
  ---- Type mismatch BEGIN
    invalid sequence
  ---- Type mismatch END
---- Type mismatch END
%MSG
Art has completed and will exit with status 8001.

The actual problem is "filter" instead of "filters" in the last line.
The complaint about a sequence is confusing.

Andrei

typo.fcl (2.08 KB) typo.fcl Andrei Gaponenko, 05/21/2015 04:50 PM

History

#1 Updated by Christopher Green over 4 years ago

  • Category set to Application
  • Status changed from New to Accepted
  • Target version set to 1.18.00
  • Estimated time set to 2.00 h
  • SSI Package art added
  • SSI Package deleted ()

Any parameter in the physics parameter set that is not either filters, producers or analyzers is assumed to be a path specification, which must be a sequence. We can certainly trap this error and throw a more useful error message in these circumstances.

#2 Updated by Kyle Knoepfel over 4 years ago

  • Status changed from Accepted to Resolved
  • Assignee set to Kyle Knoepfel
  • % Done changed from 0 to 100

Should a user specify a parameter that is not supported in the 'physics' block of the configuration file, the following exception will now be thrown:

---- Configuration BEGIN

  You have specified the following unsupported parameters in the
  "physics" block of your configuration:

     "physics.filter"   (table)

  Supported parameters include the following tables:
     "physics.producers" 
     "physics.filters" 
     "physics.analyzers" 
  and sequences.  Atomic configuration parameters are not allowed.

---- Configuration END

Implemented with commit art:7c471e2e55fa21ba75fb869a1a8ded7784b7ab4f.

#3 Updated by Kyle Knoepfel over 4 years ago

  • Target version changed from 1.18.00 to 1.15.02

#4 Updated by Kyle Knoepfel almost 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF