core: negate ret value for strerror

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>