[SERVER-5938] Print full path and file info in error messages (native format) Created: 26/May/12  Updated: 28/Apr/17  Resolved: 28/Apr/17

Status: Closed
Project: Core Server
Component/s: Logging, Usability
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Alec Taylor Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: Windows, commands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_42


Issue Links:
Related
is related to SERVER-7429 Windows mongod.exe should display dri... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

When I run mongod with no args one of the output lines is:

Sun May 27 02:45:00 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db) does not exist, terminating

On Windows the POSIX path name separater, with forward slashes, are incorrect and confusing. Print the native path format for better readability.



 Comments   
Comment by Ian Whalen (Inactive) [ 28/Apr/17 ]

Forward slashes are legal path separators on Windows.

Comment by Alec Taylor [ 27/May/12 ]

Thanks

Comment by Scott Hernandez (Inactive) [ 26/May/12 ]

Alec, the default path is by design (<drive>:\data\db) but the error message should be more windows friendly, yes. I've updated the issue to correct the formatting issue with the error message.

Generated at Thu Feb 08 03:10:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.