Skip to content

Commit

Permalink
Add a function doc comment, return drush_set_error
Browse files Browse the repository at this point in the history
  • Loading branch information
kostajh authored and greg-1-anderson committed Aug 28, 2013
1 parent 38d86c7 commit 708d0f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/core/usage.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ function drush_usage_show() {
}
}

/**
* Returns path to usage file.
*/
function _drush_usage_get_file($required = FALSE) {
$file = drush_directory_cache('usage') . '/usage.txt';
if (!file_exists($file) && $required) {
drush_set_error('DRUSH_NO_USAGE_FILE', dt('No usage file; set $options[\'drush_usage_log\'] = TRUE; in a .drushrc.php file to enable.'));
return FALSE;
return drush_set_error('DRUSH_NO_USAGE_FILE', dt('No usage file; set $options[\'drush_usage_log\'] = TRUE; in a .drushrc.php file to enable.'));
}
return $file;
}
Expand Down

0 comments on commit 708d0f1

Please sign in to comment.