Skip to main content

error_string

Function error_string 

pub fn error_string(error: i64) -> GString
Expand description

Returns a human-readable name for the given [enum Error] code.

print(OK)                              # Prints 0
print(error_string(OK))                # Prints "OK"
print(error_string(ERR_BUSY))          # Prints "Busy"
print(error_string(ERR_OUT_OF_MEMORY)) # Prints "Out of memory"