mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 13:22:11 +00:00
Print fopen fail reason (#583)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "output.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -5017,8 +5018,8 @@ LIST * function_run( FUNCTION * function_, FRAME * frame, STACK * s )
|
||||
|
||||
if ( !out_file )
|
||||
{
|
||||
err_printf( "failed to write output file '%s'!\n",
|
||||
out_name->value );
|
||||
err_printf( "[errno %d] failed to write output file '%s': %s",
|
||||
errno, out_name->value, strerror(errno) );
|
||||
exit( EXITBAD );
|
||||
}
|
||||
string_free( out_name );
|
||||
|
||||
Reference in New Issue
Block a user