<#9510 fix: Nuanced error detection for `FileNotFo...
# meltano-repo-activity
g
#9510 fix: Nuanced error detection for
FileNotFoundError
in plugin execution
Pull request opened by edgarrmondragon ## Description ## Related Issues • Closes #XXXX ## Summary by Sourcery Handle FileNotFoundError more precisely during plugin execution by introducing ExecutableNotFoundError for missing executables and preserving original errors for other file access failures, with corresponding test coverage enhancements New Features: • Introduce ExecutableNotFoundError to explicitly represent missing plugin executables • Differentiate between missing executables and plugin file access errors by inspecting FileNotFoundError.filename Enhancements: • Update the invocation pipeline to raise ExecutableNotFoundError only when the executable path itself is absent and rethrow other file errors unchanged • Refactor test_unknown_command to assert on the exception instance and its command attribute Tests: • Add async tests for missing executable and missing plugin file scenarios • Add direct tests to verify ExecutableNotFoundError messaging and usage meltano/meltano