#!/usr/bin/env ruby

require 'alexandria'

begin
    Alexandria.main
rescue => e
    $stderr.puts <<EOS
-----------------------
Alexandria just crashed 
-----------------------
Timestamp: #{Time.now}
Message: #{e.message}
Backtrace:
#{e.backtrace.join("\n")}
Uname -a: #{`uname -a`.chomp}
--
Please report this dump to '#{Alexandria::LIST}' with some additional
information, such as the description of the crash and the steps to reproduce it
(if it's possible). 
EOS
    exit 1
end
