#202 Genxref invocation not recognised

current_cvs
closed-fixed
Andre-Littoz
genxref (49)
3
2012-03-22
2012-03-21
Andre-Littoz
No

Config.pm: Formerly when no parameter group could be associated to the URL, _initialize would "die". This is not user-friendly when browsing code (or trying to) since the error message goes to STDERR. Under a web server, STDERR messages are written to the error log, not to the screen; thus the error message is not reported to the user.

To circumvent this, sub _initialise has been modified in some 0.9.x release to return when not called by genxref. Unhappily, genxref detection is faulty and never matches. Now, when something goes wrong during genxref initialisation, the error is not reported!

Suggested fix: split the detection statement in 2 simpler ones to avoid scalar/list ambiguity

Discussion

  • Andre-Littoz
    Andre-Littoz
    2012-03-22

    Corrected as suggested

     
  • Andre-Littoz
    Andre-Littoz
    2012-03-22

    • status: open --> closed-fixed