Error handling for no valid source file