Fatal if unable to open output file.

This commit is contained in:
Saurabh Shrivastava 2017-02-06 02:03:53 +05:30
parent 6837a1070b
commit 851894dceb

View File

@ -770,10 +770,10 @@ static int init_output_ctx(struct encoder_ctx *ctx, struct encoder_cfg *cfg)
char *extension = NULL; // Input filename without the extension
#define check_ret(filename) if (ret != EXIT_OK) \
#define check_ret(filename) if (ret != EXIT_OK) \
{ \
print_error(cfg->gui_mode_reports,"Failed %s\n", filename); \
return ret; \
fatal(CCX_COMMON_EXIT_FILE_CREATION_FAILED,"Failed to open output file: %s\nDetails : %s\n", filename, strerror(errno)); \
return ret; \
}
if (cfg->cc_to_stdout == CCX_FALSE && cfg->send_to_srv == CCX_FALSE && cfg->extract == 12)