1
0
Fork 0

[#29] Re-added interface name to interface errors since abstract requirement change

closure/master
Mike Gerwitz 2011-11-19 22:17:59 -05:00
parent a33df4dcbe
commit 87dd1b8961
1 changed files with 40 additions and 27 deletions

View File

@ -209,6 +209,8 @@ var extend = ( function( extending )
var new_interface = createInterface( iname ); var new_interface = createInterface( iname );
try
{
util.propParse( props, { util.propParse( props, {
assumeAbstract: true, assumeAbstract: true,
@ -239,6 +241,17 @@ var extend = ( function( extending )
); );
}, },
} ); } );
}
catch ( e )
{
// alter the message to include our name
e.message = "Failed to define interface " +
( ( iname ) ? iname : '(anonymous)' ) + ": " + e.message
;
// re-throw
throw e;
}
attachExtend( new_interface ); attachExtend( new_interface );
attachStringMethod( new_interface, iname ); attachStringMethod( new_interface, iname );