examples: Fix return type of get_errors().

Signed-off-by: Matthew Emmett <memmett@gmail.com>