error

From Garry's Mod
Jump to: navigation, search
 error( )

Contents

Description

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

Arguments

string message

The error message to throw.

Arguments

number errorLevel=1

The level to throw the error at.

Examples

Example

error("garry")

Output:

[ERROR] lua_run:1: garry
Personal tools
Navigation