#! /usr/bin/ruby
#
# This file is automatically generated by the installer.
# Do not edit by hands.

$KCODE = "u"
Thread.abort_on_exception = true

require 'fantasdic'

begin
    Fantasdic.main
rescue => e
    $stderr.puts <<EOS

-----------------------
Fantasdic just crashed
-----------------------
Timestamp: #{Time.now}
Message: #{e.message}
Backtrace:
#{e.backtrace.join("\n")}
Release: #{Fantasdic::VERSION}
System: #{Fantasdic::WIN32 ? "Windows" : `uname -a`.chomp}
--
Please report this dump to '#{Fantasdic::BUGZILLA}' 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
