Improve error message (ref:sbh)

bzr revid: hda@tinyerp.com-20081112130509-ewddg85ivilq5u81
This commit is contained in:
hda@tinyerp.com
2008-11-12 18:35:09 +05:30
parent 281031435c
commit 352339979c
+2 -1
View File
@@ -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)