Here's my output:

nameweb@name-vps1:~/www$ drush enable imagefield
ImageField is already enabled.                                       [error]
There were no modules that could be enabled.                         [ok]
An error occurred at function : drush_pm_enable                      [error]

Comments

rsvelko’s picture

Status: Active » Needs review

Things are alright generally - no real bug here. There is a need for a more user friendly drush output...

This one is either "by design" or we need to make the error to be just a notice or sth...

rsvelko’s picture

the code that outputs this is at line 327 of commands/pm/pm.drush.inc

drush_set_error(.....);

is there a "notice " function?

jonhattan’s picture

drush_log() is what prints out all the messages, including errors. http://drupalcontrib.org/api/function/drush_log/6

jonhattan’s picture

Status: Needs review » Needs work
moshe weitzman’s picture

Status: Needs work » Fixed

Now printing an 'ok' log msg.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ernboogie’s picture

Title: Get error message when trying to enable module that's already enabled » Get error message when trying to enable module
Component: Code » PM (dl, en, up ...)

I'm getting this error message when I try to enable a module. Help!? any suggestions on how to overcome this problem?

Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\drupal\includes\file.inc on line 934
array(4) { ["type"]=> int(1) ["message"]=> string(45) "Maximum execution time of 60 seconds exceeded" ["file"]=> string(40) "C:\xampp\htdocs\drupal\includes\file.inc" ["line"]=> int(934) } n/a