Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7156 closed defect (fixed)

ogrinfo: Nonsensical error when trying to open file that is locked for writing

Reported by: Alan Thomas Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

If I have color.dxf open in AutoCAD, which locks the file for editing, I see the following contradictory message printed to stderr when I run ogrinfo:

Warning 4: Failed to open c:\.....\color.dxf, No error.

Presumably this is coming from the pcraster driver:

$ git grep \"No\ error
gdal/frmts/pcraster/libcsf/mperror.c:"No error",

It wouldn't be so bad if it was a debug message, but it gets printed to stderr, which is quite annoying.

Change History (2)

comment:1 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 40790:

Fix error message of file open failure on Windows for CSV and Selafin drivers (fixes #7156)

comment:2 by Alan Thomas, 6 years ago

Thanks! I would never have found that.

Note: See TracTickets for help on using tickets.