run-file
] when ;
+: strip-ui-error-hook ( -- )
+ strip-debugger? deploy-ui? get and "ui" vocab and [
+ "Installing generic UI error hook" show
+ "vocab:tools/deploy/shaker/strip-ui-error-hook.factor"
+ run-file
+ ] when ;
+
: strip-libc ( -- )
"libc" vocab [
"Stripping manual memory management debug code" show
compiler.errors:compiler-errors
continuations:thread-error-hook
} %
-
- deploy-ui? get [
- "ui-error-hook" "ui.gadgets.worlds" lookup ,
- ] when
] when
"windows-messages" "windows.messages" lookup [ , ] when*
strip-call
strip-cocoa
strip-debugger
+ strip-ui-error-hook
strip-specialized-arrays
compute-next-methods
strip-startup-hooks
--- /dev/null
+USING: namespaces tools.deploy.config fry sequences system kernel ui ui.gadgets.worlds ;
+
+deploy-name get "Factor" or '[
+ _ " encountered an unhandled error." append
+ "The application will now exit."
+ system-alert die
+] ui-error-hook set-global