Hi,

Before patch 8.2.1832, exceptions from readdireex() cannot be caught.
When readdirex() fails to read a directory, it emits a status message.
If there are multiple unreadable directories, then multiple messages
are displayed. I am trying to filter these messages using the ":filter"
command.

In a Vim9 script, I am not able to filter the status message:
============
vim9script
var l: list<dict<any>>
:filter /abc/ l = readdirex('non-existing-dir')
echo l
============
The above code snippet displays the "E476: Invalid command:" error.

In a Vim8 script, i am able to filter the status message:
============
filter /abc/ let l = readdirex('non-existing-dir')
echo l
============

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kRvvjgVy7zTc_U7H0-m1HnziH2ajx2meQqTA9-q%3Dy4Vg%40mail.gmail.com.

Raspunde prin e-mail lui