Apologies if this appears twice. I sent the first one before being
subscribed, so suspect it might just have been black-holed by google.

I'm using the latest handin package for the handin server source,
installed with "raco pkg install handin". The server is running racket
7.2.

I'm trying to make the handin server accept erroneous submissions but
add a header line, following the example from the handin server
documentation I pass the following as :user-error-message

(lambda (msg)
  (add-header-line! "Erroneous submission!")
  (add-header-line! (format "  --> ~a" msg))
  (message (string-append
            "You have an error in your program -- please hit"
            " \"Run\" and debug your code.\n"
            "Email the course staff if you think your code is"
            " fine.\n"
            "(The submission has been saved but marked as"
            " erroneous.)")
           '(ok))
  (message "Handin saved as erroneous." 'final))

This cause the desired dialog box to pop up, but after I press OK I get
a "Server Error" popup "while evaluating #<evaluator-message>: application: not 
a procedure".

I don't really understand where the identifier "evaluator-message" is
defined, it shows up only in the .zo file for handin-server/checker.rkt.

In case it helps I attach the checker.rkt for the assignment in
question.

I'm triggering the error with a (/ 1 0) in the submission, but the type
of error does not seem to matter.

On a related topic, assuming I can get that to work, I'd like to do
something similar for !test. What's the easiest way to do that? Do I
need to use @test from the grading utilities? I basically just need to
call add-header-line! on test failure.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/87eewbgeyp.fsf%40tethera.net.

Attachment: checker.rkt
Description: Binary data

Reply via email to