Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
From a Stack Exchange question:
'css-js' cache is not a valid cache type
This message is confusing to new users who do not understand the Drush bootstrap process. Perhaps it could be enhanced to include a message stating that a site must be selected if the user enters the specific name of a valid cache that is not available at the current bootstrap level.
Comment | File | Size | Author |
---|---|---|---|
#2 | cache_clear_error_msg.patch | 2.4 KB | greg.1.anderson |
Comments
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedEh, I guess this is more of a feature request.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedHere's a simple adjustment to improve the error message when there is no bootstrapped site.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedA better error message is good. So does the new code give a sensible error message when the user mistypes 'drush cc druAsh` in his homedir?. That should not start giving any advice about Drupal.
Comment #4
greg.1.anderson CreditAttribution: greg.1.anderson commentedIt says this:
There's no good way to tell the difference between a typo and a type that might be available via a hook, so the message says that there "may be more" cache types. If you prefer, the message above could be removed, and left in its current short form unless a user exactly types a cache type that is known to be available when a Drupal site is bootstrapped.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedThat error looks perfect. thanks.
Comment #6
greg.1.anderson CreditAttribution: greg.1.anderson commentedCommitted to 8.x-6.x and 7.x-5.x.