diff --git a/basis/tools/deploy/shaker/shaker.factor b/basis/tools/deploy/shaker/shaker.factor index 09219a8e5e..9a5f89fae0 100755 --- a/basis/tools/deploy/shaker/shaker.factor +++ b/basis/tools/deploy/shaker/shaker.factor @@ -62,6 +62,13 @@ IN: tools.deploy.shaker 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 @@ -372,10 +379,6 @@ IN: tools.deploy.shaker 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* @@ -529,6 +532,7 @@ SYMBOL: deploy-vocab strip-call strip-cocoa strip-debugger + strip-ui-error-hook strip-specialized-arrays compute-next-methods strip-startup-hooks diff --git a/basis/tools/deploy/shaker/strip-ui-error-hook.factor b/basis/tools/deploy/shaker/strip-ui-error-hook.factor new file mode 100644 index 0000000000..2525145828 --- /dev/null +++ b/basis/tools/deploy/shaker/strip-ui-error-hook.factor @@ -0,0 +1,7 @@ +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