Skip to content

Commit

Permalink
now pio_init_logging() checks are returns error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 13, 2019
1 parent c2d8426 commit b6522c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pio_init_logging(void)

/* Open a file for this rank to log messages. */
if (!(LOG_FILE = fopen(log_filename, "w")))
return PIO_EINVAL;
return pio_err(ios, file, PIO_EIO, filename, line);

pio_log_ref_cnt = 1;
}
Expand Down

0 comments on commit b6522c4

Please sign in to comment.