Traceback on a common error (file not found: build.ver)

Bug #347133 reported by Paul Jimenez
2
Affects Status Importance Assigned to Milestone
Vellum
Fix Committed
Undecided
Unassigned

Bug Description

The common problem of build.vel not existing in the current working direction should be handled more gracefully than the current traceback thrown with an IOError.

This, maybe?

=== modified file 'vellum/press.py'
--- vellum/press.py 2008-04-26 19:37:18 +0000
+++ vellum/press.py 2009-03-23 07:15:38 +0000
@@ -90,6 +90,9 @@
         """
         if file in self.recipes:
             return self.recipes[file]
+ elif not os.path.isfile(file):
+ print "Expected file '%s' does not exist." % file
+ sys.exit(1)
         else:
             with open(file) as f:
                 spec = vellum.parser.parse('input', f.read() + '\0')

Ali Afshar (aafshar)
Changed in vellum:
status: New → Confirmed
Revision history for this message
Ali Afshar (aafshar) wrote :

This has been fixed in trunk

Changed in vellum:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.