Opened 14 years ago
Closed 14 years ago
#559 closed enhancement (fixed)
OptionFile says permission denied when file does not exist
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | trivial | Milestone: | yat 0.6 |
Component: | utility | Version: | 0.5.4 |
Keywords: | Cc: |
Description
I have an OptionOutFile that is created as
OptionOutFile out_pos(cmd, "p,positive", "output positive", true);
during validation I caught an exception with this message
cannot create file `result/imap/20090717/histogram.pos.txt.20': Permission denied
checking my tree I found that result/imap
does not exist and I think the error message could say that instead. See, e.g., the error message when trying to 'cp SRC TGT
' and the TGT
directory does not exist.
Docs of FileUtil says that errno is set in FileUtil::permissions, so couldn't we use strerror to get an appropriate string?
Change History (2)
comment:1 Changed 14 years ago by
Milestone: | yat 0.x+ → yat 0.6 |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [2049]) using strerror in error msg from OptionFile? (fixes #559)