On 2/8/11 3:16 AM, Fabrice Bernhard wrote:
Dear all,

I am using my current lack of familiarity with Symfony2 as a good
motivation to improve usability of the framework for noobs and
document it at the same time.

Right now for example I forgot to register my bundle and found the
corresponding error message quite unclear.

     Bundle "MyBundle" does not exist or it is not enabled.

I propose to rewrite in a more pedagogical way (https://github.com/
fabriceb/symfony/commit/fef2a6b501281371cb94a3a364a94ec018e09157):

But this raises an interesting question: what would actually be the
general recommended way to report errors for you?
  - just a factual description of the error : Bundle "MyBundle" does
not exist or it is not enabled.
  - The friendly type: Bundle "MyBundle" does not exist or it is not
enabled. Did you forget to add it in the registerBundles() function of
your AppKernel.php file?
  - The mentor type: Bundle "MyBundle" does not exist or it is not
enabled. You probably forgot to add it in the registerBundles()
function of your AppKernel.php file.

Maybe this is just a detail... but I have the impression that this is
the kind of details that can transform regular 5-minutes frustrations
into 10-seconds correct-and-enjoy moments. Let me know what you think
about this!

That makes a lot of sense. I'm all in favor of more descriptive error messages. My preferences goes to the friendly type. And we already have a couple of error messages like this one (https://github.com/fabpot/symfony/blob/master/src/Symfony/Component/Form/PropertyPath.php#L324 for instance).

Fabien

Cheers,

Fabrice Bernhard
--
http://www.allomatch.com
http://www.theodo.fr
+33 6 23 52 11 95


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to