mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Merge pull request #348 from Wilma456/termcheck
Update term.redirect check to new style
This commit is contained in:
		| @@ -11,8 +11,8 @@ end | |||||||
| local term = {} | local term = {} | ||||||
|  |  | ||||||
| term.redirect = function( target ) | term.redirect = function( target ) | ||||||
| 	if target == nil or type( target ) ~= "table" then |     if type( target ) ~= "table" then | ||||||
| 		error( "Invalid redirect target", 2 ) |         error( "bad argument #1 (expected table, got " .. type( target ) .. ")", 2 )  | ||||||
|     end |     end | ||||||
|     if target == term then |     if target == term then | ||||||
|         error( "term is not a recommended redirect target, try term.current() instead", 2 ) |         error( "term is not a recommended redirect target, try term.current() instead", 2 ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Ratcliffe
					Daniel Ratcliffe