Garry's Mod Wiki

error

You might be looking for the "Error" function, which has the same name as this function.
  error( string message, number errorLevel = 1 )

Description

Throws a Lua error and breaks out of the current call stack.

Arguments

1 string message
The error message to throw
2 number errorLevel = 1
The level to throw the error at.