Message138781
When trying to open a non existing MSI database, an obscure "unknown error 6e" is raised.
Could it be possible to get a more explicit message such as "File not found" or whatever ?
Thanks :)
Here is a example:
--------------------------------
D:\>ll
total 0
drwxr-xr-x 4 tcinteg Administ 0 Nov 30 2010 RECYCLER
drwxr-xr-x 0 tcinteg Administ 0 Jul 6 2009 System Volume Information
drwxr-xr-x 4 tcinteg Administ 0 Apr 29 16:03 TC
drwxr-xr-x 3 tcinteg Administ 0 Apr 29 15:43 stgloc
D:\>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import msilib
>>> db = msilib.OpenDatabase("I_Do_Not_Exist.msi", msilib.MSIDBOPEN_READONLY)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_msi.MSIError: unknown error 6e
>>> |
|
Date |
User |
Action |
Args |
2011-06-21 12:12:17 | Robin.Jarry | set | recipients:
+ Robin.Jarry, loewis |
2011-06-21 12:12:17 | Robin.Jarry | set | messageid: <1308658337.05.0.630810191443.issue12382@psf.upfronthosting.co.za> |
2011-06-21 12:12:16 | Robin.Jarry | link | issue12382 messages |
2011-06-21 12:12:15 | Robin.Jarry | create | |
|