~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/sourcepackagerecipe.py

[r=jml][ui=None][bug=604725] Pass bzr-builder exception messages back
        to the user.

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
        try:
295
295
            parser = RecipeParser(data['recipe_text'])
296
296
            parser.parse()
297
 
        except RecipeParseError:
 
297
        except RecipeParseError, error:
298
298
            self.setFieldError(
299
299
                'recipe_text',
300
 
                'The recipe text is not a valid bzr-builder recipe.')
 
300
                'The recipe text is not a valid bzr-builder recipe.  '
 
301
                '%(error)s' % {'error': error.problem})
301
302
 
302
303
 
303
304
class SourcePackageRecipeAddView(RecipeTextValidatorMixin, LaunchpadFormView):