diff --git a/basis/stack-checker/errors/prettyprint/prettyprint.factor b/basis/stack-checker/errors/prettyprint/prettyprint.factor index eef35b61cd..d008c4921d 100644 --- a/basis/stack-checker/errors/prettyprint/prettyprint.factor +++ b/basis/stack-checker/errors/prettyprint/prettyprint.factor @@ -51,7 +51,7 @@ M: inconsistent-recursive-call-error summary " calls itself with a different set of quotation parameters than were input" surround ; M: unknown-primitive-error summary - word>> name>> "The " " word cannot be called from optimized words" surround ; + drop "The do-primitive word cannot be called from here" ; M: transform-expansion-error summary word>> name>> "Macro expansion of " " threw an error" surround ; diff --git a/basis/stack-checker/stack-checker-tests.factor b/basis/stack-checker/stack-checker-tests.factor index 7ee7b8e0dd..6af0ec64e5 100644 --- a/basis/stack-checker/stack-checker-tests.factor +++ b/basis/stack-checker/stack-checker-tests.factor @@ -391,3 +391,6 @@ DEFER: eee' [ [ call-effect ] infer ] [ T{ unknown-macro-input f call-effect } = ] must-fail-with [ [ execute-effect ] infer ] [ T{ unknown-macro-input f execute-effect } = ] must-fail-with + +[ \ set-callstack def>> infer ] [ T{ unknown-primitive-error } = ] must-fail-with +[ ] [ [ \ set-callstack def>> infer ] try ] unit-test