[33mcommit 77c8f7736b168e44a0a30064f0209dfb1e278295[0m
Author: Johan Walles <johan.walles@gmail.com>
Date:   Wed May 6 21:52:51 2015 +0200

    On exceptions, print a link to the issue tracker

[2mdiff --git a/bin/riff b/bin/riff[0m
[2mindex 17ded03..92a771a 100755[0m
[1m--- a/bin/riff[0m
[1m+++ b/bin/riff[0m
[36m@@ -1,15 +1,23 @@[0m
 #!/usr/bin/env ruby

[31m-# Inspired by http://timelessrepo.com/making-ruby-gems[0m
 begin
[31m-  require 'riff'[0m
[31m-rescue LoadError[0m
[31m-  $LOAD_PATH.unshift File.join(__dir__, '..', 'lib')[0m
[31m-  require 'riff'[0m
[31m-end[0m
[31m-require 'pager'[0m
[32m+  # Inspired by http://timelessrepo.com/making-ruby-gems[0m
[32m+  begin[0m
[32m+[7m    [27mrequire 'riff'[0m
[32m+[7m  [27mrescue LoadError[0m
[32m+[7m  [27m  $LOAD_PATH.unshift File.join(__dir__, '..', 'lib')[0m
[32m+[7m  [27m  require 'riff'[0m
[32m+[7m  [27mend[0m
[32m+[7m  [27mrequire 'pager'[0m

[31m-include Pager[0m
[32m+[7m  [27minclude Pager[0m

[31m-refined = Riff.new().do_stream(STDIN)[0m
[31m-page(refined)[0m
[32m+[7m  [27mrefined = Riff.new().do_stream(STDIN)[0m
[32m+[7m  [27mpage(refined[7m)[0m
[32m+rescue => e[0m
[32m+  STDERR.puts[0m
[32m+  STDERR.puts e.to_s[0m
[32m+  STDERR.puts e.backtrace.join("\n\t")[0m
[32m+  STDERR.puts[0m
[32m+  STDERR.puts 'Please report this to https://github.com/walles/riff/issues'[0m
[32m+end[0m
