aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-gist-logs.rb2
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