Silence errors from file watchers when adding files
The file watcher can throw errors on Linux that are very cryptic and actually not very useful to users, so let's hide them since there isn't really any problem that comes from this. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15717
This commit is contained in:
@@ -705,7 +705,11 @@ void SCH_BASE_FRAME::setSymWatcher( const LIB_ID* aID )
|
||||
fn.AssignDir( m_watcherFileName.GetPath() );
|
||||
fn.DontFollowLink();
|
||||
|
||||
m_watcher->Add( fn );
|
||||
{
|
||||
// Silence OS errors that come from the watcher
|
||||
wxLogNull silence;
|
||||
m_watcher->Add( fn );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user