is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

#529 closed bug (fixed)

Bad error message when missing parameter

Reported by: doubleface Owned by: doubleface
Priority: normal Milestone: Jelix 1.0.3
Component: jelix:utils Version: 1.0.2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


If you try in jelix testapp application the following command :

php jelix.php default:single rien

You get the following message :

[notice 8] Undefined offset:  0         /home/doubleface/Workspace/jelix/lib/jelix/utils/jCmdUtils.class.php    49
[exception 41] Paramètre "%s" manquant  /home/doubleface/Workspace/jelix/lib/jelix/utils/jCmdUtils.class.php    49

You should get:

[exception 41] Paramètre "test" manquant        /home/doubleface/Workspace/jelix/lib/jelix/utils/jCmdUtils.class.php    49

See joined patch

Attachments (1)

cmdutils.patch (609 bytes) - added by doubleface 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by doubleface

comment:1 Changed 13 years ago by laurentj

  • review changed from review? to review+


comment:2 Changed 13 years ago by doubleface

  • Status changed from new to assigned

comment:3 Changed 13 years ago by doubleface

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.