Skip to content

Commit

Permalink
Rename Missing_Required_Argument. to Missing_Argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Jun 5, 2024
1 parent f6fedd1 commit 24ba0b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ type Missing_Argument
## PRIVATE
Indicates that an expression cannot be evaluated because somewhere within
it, a function does not have all required arguments provided.
Error (argument_name : Text) (function_name : Text = "") (call_location : Source_Location | Nothing)
Error (argument_name : Text) (function_name : Text = "") (call_location : Source_Location | Nothing = Nothing)

## PRIVATE
to_display_text : Text
Expand All @@ -475,7 +475,8 @@ type Missing_Argument
## PRIVATE
Throws an error saying that a required argument has not been provided.
throw : Text -> Nothing ! Missing_Argument
throw argument_name:Text = Error.throw (Missing_Argument.Error argument_name)
throw argument_name:Text =
Error.throw (Missing_Argument.Error argument_name)

## PRIVATE
Throws an error saying that a required argument has not been provided.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,11 @@ type DB_Table
new_ctx = self.context.set_where_filters new_filters
self.updated_context new_ctx

filter_condition = case filter of
_ : Function -> Panic.catch Any (filter:Filter_Condition) _->filter
_ -> filter
filter_condition = case filter of
_ : Function -> Panic.catch Any (filter:Filter_Condition) _->filter
_ -> filter

case filter of
case filter_condition of
_ : Filter_Condition ->
resolved = (self:Table_Ref).resolve_condition filter_condition
mask (make_filter_column column resolved on_problems)
Expand Down

0 comments on commit 24ba0b9

Please sign in to comment.