The Lambda Lab
/
projects
/
scratchy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
882fc83
)
Query serving error report improvement.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 5 May 2019 20:47:54 +0000
(22:47 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 5 May 2019 20:47:54 +0000
(22:47 +0200)
burrower.scm
patch
|
blob
|
history
diff --git
a/burrower.scm
b/burrower.scm
index
a03c266
..
581ea9c
100644
(file)
--- a/
burrower.scm
+++ b/
burrower.scm
@@
-156,7
+156,7
@@
(lambda ()
(apply (eval (read))
(list (car arguments) remote-ip)))))))
(lambda ()
(apply (eval (read))
(list (car arguments) remote-ip)))))))
- (error "Invalid query."))))
+ (error "Invalid query."
selector arguments
))))
;;; Index rendering
;;; Index rendering
@@
-202,7
+202,10
@@
dir-selector config
(lambda ()
(let-values (((in-port out-port id) (process command)))
dir-selector config
(lambda ()
(let-values (((in-port out-port id) (process command)))
- (serve-info-records (string-chomp (read-string #f in-port) "\n"))))))
+ (let ((string (read-string #f in-port)))
+ (if (and (not (eof-object? string))
+ (> (string-length string) 0))
+ (serve-info-records (string-chomp string "\n"))))))))
(define (serve-expression expression dir-selector config)
(with-selector-dir
(define (serve-expression expression dir-selector config)
(with-selector-dir