Skip to content

Commit

Permalink
grid: Improve error message in grid_collocate_replay
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jul 8, 2020
1 parent c4ddbdf commit 9abc88d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/grid/grid_collocate_replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ void grid_collocate_record(const bool orthorhombic,
// *****************************************************************************
double grid_collocate_replay(const char* filename, const int cycles){
FILE *fp = fopen(filename, "r");
assert(fp != NULL && "Could not open task file.");
if (fp == NULL) {
fprintf(stderr, "Could not open task file: %s\n", filename);
exit(1);
}

char line[100], key[100];

Expand Down

0 comments on commit 9abc88d

Please sign in to comment.