Make output conditional
This commit is contained in:
parent
153e1190ea
commit
a558a67fbd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue