Print out exception's toString() rather then just its class.
This commit is contained in:
		
							parent
							
								
									5577263f66
								
							
						
					
					
						commit
						2b9cee82da
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -679,7 +679,7 @@ public final class RhinoCore {
 | 
			
		|||
            cx.evaluateReader(op, reader, sourceName, firstline, null);
 | 
			
		||||
 | 
			
		||||
        } catch (Exception e) {
 | 
			
		||||
            app.logEvent("Error parsing file " + sourceName + ": " + e.getClass());
 | 
			
		||||
            app.logEvent("Error parsing file " + sourceName + ": " + e);
 | 
			
		||||
            // also write to standard out unless we're logging to it anyway
 | 
			
		||||
            if (!"console".equalsIgnoreCase(app.getProperty("logDir"))) {
 | 
			
		||||
                System.err.println("Error parsing file " + sourceName + ": " + e);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue