diff options
| author | Alex Burka | 2014-05-21 20:37:44 -0400 |
|---|---|---|
| committer | Jack Nagel | 2014-05-22 20:49:26 -0500 |
| commit | e5ec629ef0dd639d2cc31cfc931517baeba0a017 (patch) | |
| tree | 2e5c862e4c3923ec776595a1a6210d4c81470278 /Library | |
| parent | 46a4210afbc7b1c1af8f80e06951dff01d316f58 (diff) | |
| download | homebrew-e5ec629ef0dd639d2cc31cfc931517baeba0a017.tar.bz2 | |
fix HTTP 422 when gist-logs sends an empty file
Closes #29476.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-gist-logs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-gist-logs.rb b/Library/Contributions/cmd/brew-gist-logs.rb index 7d4e1c110..28765a2e3 100755 --- a/Library/Contributions/cmd/brew-gist-logs.rb +++ b/Library/Contributions/cmd/brew-gist-logs.rb @@ -30,7 +30,7 @@ def load_logs name logs = {} dir = (HOMEBREW_LOGS/name) dir.children.sort.each do |file| - logs[file.basename.to_s] = {:content => file.read} + logs[file.basename.to_s] = {:content => (file.size == 0 ? "empty log" : file.read)} end if dir.exist? raise 'No logs.' if logs.empty? logs |
