Make file-list-queue% use new error format.

Closes PR 15013.
This commit is contained in:
Eric Dobson 2015-04-26 22:04:35 -07:00 committed by Matthew Flatt
parent aef101fd84
commit 06634b74d5
2 changed files with 9 additions and 3 deletions

View File

@ -1,8 +1,13 @@
#lang racket/base
(require
racket/file
rackunit
setup/parallel-build)
(check-exn exn:fail:contract? (λ () (parallel-compile ".")))
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:worker-count 2.5)))
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:handler 5)))
(define temporary-directory (make-temporary-file "parallel-build~a" 'directory))
(check-false (parallel-compile-files (list temporary-directory)))
(delete-directory/files temporary-directory)

View File

@ -223,9 +223,10 @@
(match result-type
[(list 'LOCK fn) (lm/lock lock-mgr fn wrkr) #f]
[(list 'UNLOCK fn) (lm/unlock lock-mgr fn) #f]
[(list 'ERROR msg) (handler id 'error work msg out err)
(set! results #f)
#t]
[(list 'ERROR long-msg short-msg)
(handler id 'error work long-msg out err)
(set! results #f)
#t]
[(list 'LOG level msg data)
(when (log-level? pb-logger level)
(log-message pb-logger level msg (parallel-compile-event id data)))