Improve error message (ref:sbh)
authorhda@tinyerp.com <>
Wed, 12 Nov 2008 13:05:09 +0000 (18:35 +0530)
committerhda@tinyerp.com <>
Wed, 12 Nov 2008 13:05:09 +0000 (18:35 +0530)
bzr revid: hda@tinyerp.com-20081112130509-ewddg85ivilq5u81

bin/tools/misc.py

index ec4c92d..9e4dd3c 100644 (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)