Improve error message (ref:sbh)
bzr revid: hda@tinyerp.com-20081112130509-ewddg85ivilq5u81
This commit is contained in:
+2
-1
@@ -247,7 +247,8 @@ def file_open(name, mode="r", subdir='addons', pathinfo=False):
|
||||
if pathinfo:
|
||||
return fo, i
|
||||
return fo
|
||||
|
||||
if os.path.splitext(name)[1] == '.rml':
|
||||
raise IOError, 'Report %s doesn\'t exist or deleted : ' %str(name)
|
||||
raise IOError, 'File not found : '+str(name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user