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

Opened 12 years ago

Closed 12 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:

Description

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 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by doubleface

comment:1 Changed 12 years ago by laurentj

  • review changed from review? to review+

ok.

comment:2 Changed 12 years ago by doubleface

  • Status changed from new to assigned

comment:3 Changed 12 years ago by doubleface

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