Make output conditional

This commit is contained in:
Simon Richter 2023-11-07 13:31:54 +00:00 committed by Mark Roszko
parent 153e1190ea
commit a558a67fbd
1 changed files with 2 additions and 1 deletions

View File

@ -465,7 +465,8 @@ int PCBNEW_JOBS_HANDLER::JobExportDrill( JOB* aJob )
wxFileName fn( aDrillJob->m_outputDir + wxT( "/" ) );
if( !fn.Mkdir( wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) )
{
wxFprintf( stderr, _( "Failed to create output directory\n" ) );
if( aJob->IsCli() )
wxFprintf( stderr, _( "Failed to create output directory\n" ) );
return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT;
}