Skip to content

Commit

Permalink
Mod: Update error msg in check_metric_inputs func.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Nov 24, 2023
1 parent 5595ff5 commit 03dae89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aac_metrics/utils/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def check_metric_inputs(

error_msgs = []
if not is_mono_sents(candidates):
error_msg = "Invalid candidates type. (expected list[str])"
error_msg = f"Invalid candidates type. (expected list[str], found {candidates.__class__.__name__})"
error_msgs.append(error_msg)

if not is_mult_sents(mult_references):
error_msg = "Invalid mult_references type. (expected list[list[str]])"
error_msg = f"Invalid mult_references type. (expected list[list[str]], found {mult_references.__class__.__name__})"
error_msgs.append(error_msg)

if len(error_msgs) > 0:
Expand Down

0 comments on commit 03dae89

Please sign in to comment.