mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: handle panic in lua input if it is incorrect
This commit is contained in:
		
							parent
							
								
									d34aa09e8e
								
							
						
					
					
						commit
						2086a1ec78
					
				
							
								
								
									
										4
									
								
								exec.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								exec.go
									
									
									
									
									
								
							@ -114,7 +114,9 @@ func handleLua(cmdString string) (uint8, error) {
 | 
			
		||||
	}
 | 
			
		||||
	// And if there's no syntax errors and -n isnt provided, run
 | 
			
		||||
	if !noexecute {
 | 
			
		||||
		_, err = rt.Call1(l.MainThread(), rt.FunctionValue(chunk))
 | 
			
		||||
		if chunk != nil {
 | 
			
		||||
			_, err = rt.Call1(l.MainThread(), rt.FunctionValue(chunk))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if err == nil {
 | 
			
		||||
		return 0, nil
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user