Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignoring invalid byte sequence exceptions

  • Loading branch information...
commit ae90ed27b116bd8c73093bbcdc092e3f34b8f526 1 parent 6fca410
@itsderek23 itsderek23 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 passenger_memory_stats/passenger_memory_stats.rb
View
5 passenger_memory_stats/passenger_memory_stats.rb
@@ -24,7 +24,10 @@ def build_report
remember(mem_name => memory(mem_name))
end
end
- else
+ # The following exception will occassially be raised by passenger-memory-stats:
+ # /usr/local/rvm/gems/ruby-1.9.2-p136/gems/passenger-3.0.2/lib/phusion_passenger/admin_tools/memory_stats.rb:247:in `split': invalid byte sequence in US-ASCII (ArgumentError)
+ # This will ignore that error.
+ elsif data !~ /invalid byte sequence/
error "Could not get data from command", "Error: #{data}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.