Omit warning message if MANPATH is not set.
This commit is contained in:
parent
fe45fdc230
commit
e13ad264bc
|
@ -23,7 +23,13 @@
|
|||
(unescape-uri (http-url-search url))
|
||||
'())))
|
||||
(else
|
||||
(let ((man-path ((infix-splitter ":") (getenv "MANPATH"))))
|
||||
(let ((man-path
|
||||
((infix-splitter ":")
|
||||
(or (getenv "MANPATH")
|
||||
(begin
|
||||
(format (current-error-port)
|
||||
"~%Warning: environment variable MANPATH is unset.~%")
|
||||
"")))))
|
||||
(lambda (url)
|
||||
(values man-path
|
||||
(unescape-uri (http-url-search url))
|
||||
|
|
Loading…
Reference in New Issue