Make resolve.conf-parse-error a condition.
This commit is contained in:
parent
ceb481fc10
commit
183cf60bb7
|
@ -1077,6 +1077,9 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Parsing of /etc/resolv.conf
|
||||
|
||||
(define-condition-type 'resolv.conf-parse-error '(dns-error))
|
||||
(define resolv.conf-parse-error? (condition-predicate 'resolv.conf-parse-error))
|
||||
|
||||
(define (parse-nameserver rest-of-line)
|
||||
(let ((match (regexp-search
|
||||
(rx (: (submatch (** 1 3 digit) "."
|
||||
|
|
Loading…
Reference in New Issue