Skip to content

Commit

Permalink
added newlines to realpath errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cadejager committed Jan 12, 2017
1 parent 7fcd8b8 commit 5e4fe55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pftool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ int main(int argc, char *argv[]) {
strcpy(dest_path, buf);
PathPtr p_dest(PathFactory::create(dest_path));
if(NULL == p_dest->realpath(buf) && ENOENT != errno) {
fprintf(stderr, "Failed to realpath dest_path: %s", dest_path);
fprintf(stderr, "Failed to realpath dest_path: %s\n", dest_path);
MPI_Abort(MPI_COMM_WORLD, -1);
}
} while(0 != strcmp(dest_path, buf));
Expand Down Expand Up @@ -534,7 +534,7 @@ int main(int argc, char *argv[]) {
strcpy(head->data.path, buf);
PathPtr p_src(PathFactory::create(head->data.path));
if(NULL == p_src->realpath(buf)) {
fprintf(stderr, "Failed to realpath src: %s", head->data.path);
fprintf(stderr, "Failed to realpath src: %s\n", head->data.path);
MPI_Abort(MPI_COMM_WORLD, -1);
}
} while(0 != strcmp(head->data.path, buf));
Expand Down

0 comments on commit 5e4fe55

Please sign in to comment.