We just randomly throw around PROVISION_x_ERROR, but they don't have much meaning at the moment.
They should be mapped against the platform requirements, so that if an error gets flagged we can see what needs to be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | hosting_error_strings.diff | 5.93 KB | adrian |
Comments
Comment #1
anarcat commentedComment #2
anarcat commentedIs this still relevant? How does this related to the discussion we had about not depending too much on integers for status but instead return full error messages?
Marking as priority for 0.2.
Comment #3
adrian commentedThis is the front end work related to http://drupal.org/node/374797
When drush_set_error gets in, the return value for the errors generated in provision change.
It will now return an associative array of errors. These errors need to be stored in a database table associated to the node the task is generated on.
This could also go a long way towards helping us with the site status issues, as we can see that the site has an inactive database, etc.
The index keys could also be used to map against the HELP documentation to fix this specific error, which will make the contextual help far cleaner and provide the support for multiple platforms / multiple db servers / multiple web servers, instead of just assuming all the help is on the master platform.
Comment #4
anarcat commentedSo we're moving towards a consensus where we think the bitmaps probably have to go. We basically need to store three things:
1. is the task in the queue
inqueue2. did the task generate an error in last run
status(a bit redundant: ifinqueueis 0, thenstatusshould always be 0)3. the actual errors (which are probably a json string)
Comment #5
adrian commentedThis is dependent on http://drupal.org/node/414058
Comment #6
anarcat commentedThat patch has been committed, and I did some more work to cleanup the error codes (transform them into strings because we #414058: ditch the "status bitmaps").
However, some work still remains:
This is the only instance I could find, but it's clearly wrong. I can't figure out right now what
drush_get_error()returns... After that we'll be pretty much done.Comment #7
anarcat commentedI committed a fix changing that last call. http://drupal.org/cvs?commit=206764