2
0
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:
Nikita Kniazev
2020-05-05 16:46:17 +03:00
committed by GitHub
parent 3a4bc7e4a0
commit 0eadb37690
6 changed files with 37 additions and 4 deletions

View File

@@ -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 );