return error as string