Return error instead of string