[SERVER-1733] Better error if log points to existing directory Created: 04/Sep/10  Updated: 12/Jul/16  Resolved: 07/Sep/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: 1.7.1

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

If the log filepath points to an existing directory display an error saying this.

Right now you get something like this: "can't open [c:\temp\mongodblogs] for log file: errno:13 The data is invalid."

It would be much more helpful to have "errno:13 The data is invalid. Can't open [c:\temp\mongodblogs]. It cannot be used for a log file-path since it is a directory.



 Comments   
Comment by auto [ 07/Sep/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Better error if logpath is a directory SERVER-1733
http://github.com/mongodb/mongo/commit/c1cc61f19b7191742a4c5007e3c10d3897f0b8e7

Comment by Mathias Stearn [ 07/Sep/10 ]

New message:

logpath [/tmp] should be a file name not a directory

Generated at Thu Feb 08 02:57:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.