Ignore invalid markers.
This commit is contained in:
parent
bc0420bbc0
commit
056644ff66
2 changed files with 6 additions and 1 deletions
|
@ -56,6 +56,8 @@
|
||||||
;; 'quiet - ignore
|
;; 'quiet - ignore
|
||||||
(define *member-file-check-syntax* (make-parameter 'error))
|
(define *member-file-check-syntax* (make-parameter 'error))
|
||||||
|
|
||||||
|
;; Default as specified by the original implementation if the 'joined
|
||||||
|
;; key is missing in member file.
|
||||||
(define *member-default-joined* (make-parameter (make-month 2015 1)))
|
(define *member-default-joined* (make-parameter (make-month 2015 1)))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -78,7 +78,10 @@
|
||||||
(loop (cdr l)
|
(loop (cdr l)
|
||||||
ps
|
ps
|
||||||
(cdr m)))
|
(cdr m)))
|
||||||
(error 'period-markers->periods "Invalid start/stop sequence marker" m))))))
|
(if (eq? (*member-file-check-syntax*) 'error)
|
||||||
|
(error 'period-markers->periods "Invalid start/stop sequence marker" m)
|
||||||
|
(reverse ps) ; Just ignore it for now
|
||||||
|
))))))
|
||||||
|
|
||||||
;; Returns duration of period in months. Start is included, end is
|
;; Returns duration of period in months. Start is included, end is
|
||||||
;; not. The period contains the month just before the specified end.
|
;; not. The period contains the month just before the specified end.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue