Skip to content

Commit

Permalink
fix: rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
montezdesousa committed May 17, 2024
1 parent a20e04d commit 4991c9c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def wrapper(*f_args, **f_kwargs):
error_list.append(f"[Arg] {loc} -> input: {_input} -> {msg}")
error_list.insert(0, validation_error)
error_str = "\n".join(error_list)
raise OpenBBError(f"\n[Detail] -> {error_str}").with_traceback(
raise OpenBBError(f"\n[Error] -> {error_str}").with_traceback(
tb
) from None
if isinstance(e, OpenBBError):
raise OpenBBError(f"\n[Detail] -> {str(e)}").with_traceback(
raise OpenBBError(f"\n[Error] -> {str(e)}").with_traceback(
tb
) from None
raise OpenBBError("\n[Detail] -> Unexpected error.").with_traceback(
raise OpenBBError("\n[Error] -> Unexpected error.").with_traceback(
tb
) from None

Expand Down

0 comments on commit 4991c9c

Please sign in to comment.