Ticket #529 (closed bug: fixed)

Opened 8 months ago

Last modified 8 months ago

Bad error message when missing parameter

Reported by: doubleface Assigned to: doubleface
Priority: normal Milestone: Jelix 1.0.3
Component: jelix:utils Version: 1.0.2
Severity: normal Keywords:
Cc: Php version:
Review: review+ Hosting Provider:
Documentation needed: 0 Blocking:

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

cmdutils.patch (0.6 kB) - added by doubleface on 03/30/08 15:53:37.

Change History

03/30/08 15:53:37 changed by doubleface

  • attachment cmdutils.patch added.

03/30/08 16:04:07 changed by laurentj

  • review changed from review? to review+.

ok.

03/30/08 16:10:21 changed by doubleface

  • status changed from new to assigned.

03/30/08 16:17:33 changed by doubleface

  • status changed from assigned to closed.
  • resolution set to fixed.
Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed