Skip to content

Commit

Permalink
Merge pull request #135 from seung-lab/fcollman-errorfix
Browse files Browse the repository at this point in the history
fixed error message description
  • Loading branch information
ceesem authored Dec 21, 2023
2 parents ccd1909 + 3b8537a commit b5d3993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caveclient/tools/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ def add_dataframe(self, df):
if len(missing_cols) > 0 or len(additional_cols) > 0:
if len(missing_cols) == 0:
raise ValueError(
f"Schema needs columns not in dataframe: {additional_cols}."
f"Dataframe has columns that are not in schema: {additional_cols}."
)
if len(additional_cols) == 0:
raise ValueError(
f"Dataframe has columns that do not match fields: {missing_cols}."
f"Schema needs columns not in dataframe: {missing_cols}."
)
raise ValueError(
f"Schema needs columns not in dataframe: {missing_cols} and dataframe has columns that do not match fields: {additional_cols}."
Expand Down

0 comments on commit b5d3993

Please sign in to comment.