ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

MelSyntaxError not printing proper context in some cases #171

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
try this

mel.source('/Applications/Autodesk/maya2009/Maya.app/Contents/script
s/others/renderLayerParent.mel')

and this:

source 
"/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re
nderLayerParent.mel"
// Error:   if(catch(`editRenderLayerGlobals -currentRenderLayer 
$current)) { // 
// Error: 
"/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re
nderLayerParent.mel" line 90.63: Syntax error // 
// Error:   } // 
// Error: 
"/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re
nderLayerParent.mel" line 92.2: Procedure is missing a return statement. // 
// Error:   return( $status ); // 
// Error: 
"/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re
nderLayerParent.mel" line 94.18: "$status" is an undeclared variable. // 
// Error: } // 
// Error: 
"/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re
nderLayerParent.mel" line 95.1: Syntax error // 

the mel provides some explanations, which should be detected and 
included with the exception

Original issue reported on code.google.com by chad...@gmail.com on 11 Mar 2010 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by chad...@gmail.com on 12 Mar 2010 at 7:17