projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2810314
)
Improve error message (ref:sbh)
author
hda@tinyerp.com
<>
Wed, 12 Nov 2008 13:05:09 +0000
(18:35 +0530)
committer
hda@tinyerp.com
<>
Wed, 12 Nov 2008 13:05:09 +0000
(18:35 +0530)
bzr revid: hda@tinyerp.com-
20081112130509
-ewddg85ivilq5u81
bin/tools/misc.py
patch
|
blob
|
history
diff --git
a/bin/tools/misc.py
b/bin/tools/misc.py
index
ec4c92d
..
9e4dd3c
100644
(file)
--- a/
bin/tools/misc.py
+++ b/
bin/tools/misc.py
@@
-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)