[svn:parrot] r46274 - trunk/lib/Parrot/Pmc2c

moritz at svn.parrot.org moritz at svn.parrot.org
Tue May 4 07:05:40 UTC 2010


Author: moritz
Date: Tue May  4 07:05:39 2010
New Revision: 46274
URL: https://trac.parrot.org/parrot/changeset/46274

Log:
[pmc2c] mention PMC name in some of the error messages, since one call to pmc2c can process many of them

Modified:
   trunk/lib/Parrot/Pmc2c/PMCEmitter.pm

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Tue May  4 05:18:03 2010	(r46273)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Tue May  4 07:05:39 2010	(r46274)
@@ -741,8 +741,9 @@
     my $flag_auto_attrs = $self->{flags}{auto_attrs};
     my $flag_manual_attrs = $self->{flags}{manual_attrs};
     die 'manual_attrs and auto_attrs can not be used together'
+         . 'in PMC ' . $self->name
         if ($flag_auto_attrs && $flag_manual_attrs);
-    die 'PMC has attributes but no auto_attrs or manual_attrs'
+    die 'PMC ' . $self->name . ' has attributes but no auto_attrs or manual_attrs'
         if (@{$self->attributes} && ! ($flag_auto_attrs || $flag_manual_attrs));
 
     if ( @{$self->attributes} &&  $flag_auto_attrs) {


More information about the parrot-commits mailing list