Skip to content

Commit

Permalink
If chdir(DATIDIR) fails, suggest --localdat or 'make install'
Browse files Browse the repository at this point in the history
  • Loading branch information
ec429 committed Jul 19, 2014
1 parent bee9dcb commit 890151f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions harris.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ int main(int argc, char *argv[])
if(chdir(localdat?cwd:DATIDIR))
{
perror("Failed to enter data dir: chdir");
if(!localdat)
fprintf(stderr, "(Maybe try with --localdat, or make install)\n");
return(1);
}
#endif
Expand Down

0 comments on commit 890151f

Please sign in to comment.