helm: Don't error when /media/* is not accessible

master
Pierre Neidhardt 2018-05-17 17:18:29 +02:00
parent 4f2add2a2b
commit 2293340a50
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ With prefix argument, UPDATE the databases."
(lambda (db)
(ambrevar/helm-locate-create-or-update-db db (file-name-directory db) update))
(apply 'append (mapcar
(lambda (root) (file-expand-wildcards (concat root "/*/locate.db")))
(lambda (root) (ignore-errors (file-expand-wildcards (concat root "/*/locate.db"))))
(list (concat "/run/media/" (user-login-name)) "/media")))))
":")
nil (thing-at-point 'filename))))