Handle "error" being passed through JSON.