From 83b1bde84cd178bfebe4df8fd354be65a2b09a5b Mon Sep 17 00:00:00 2001 From: z3z1ma Date: Mon, 1 Aug 2022 14:23:08 -0700 Subject: [PATCH] note error type is value error --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 816a8c3..372cb18 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,13 @@ The below options are applicable to all clients unless specifically noted otherw These are available *anywhere* dbt jinja is evaluated. That includes profiles.yml, dbt_project.yml, models, macros, etc. -`feature_flag(flag: str) -> bool`: Looks for boolean variation flag. By default returns False. Most flags are boolean. Will throw RuntimeError if different return type is detected. +`feature_flag(flag: str) -> bool`: Looks for boolean variation flag. By default returns False. Most flags are boolean. Will throw ValueError if different return type is detected. -`feature_flag_str(flag: str) -> str`: Looks for string variation flag. By default returns "". Will throw RuntimeError if different return type is detected. +`feature_flag_str(flag: str) -> str`: Looks for string variation flag. By default returns "". Will throw ValueError if different return type is detected. -`feature_flag_num(flag: str) -> float | int`: Looks for number variation flag. By default returns 0. Will throw RuntimeError if different return type is detected. +`feature_flag_num(flag: str) -> float | int`: Looks for number variation flag. By default returns 0. Will throw ValueError if different return type is detected. -`feature_flag_json(flag: str) -> dict | list`: Looks for json variation flag. By default returns an empty dict {}. Will throw RuntimeError if different return type is detected. +`feature_flag_json(flag: str) -> dict | list`: Looks for json variation flag. By default returns an empty dict {}. Will throw ValueError if different return type is detected. ## Examples