Skip to content

Commit

Permalink
SystemError.build_message: Also restrict message to String?.
Browse files Browse the repository at this point in the history
  • Loading branch information
yxhuvud committed Jul 24, 2021
1 parent 36b88f6 commit bac4814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system_error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module SystemError
#
# By default it returns the original message unchanged. But that could be
# customized based on the keyword arguments passed to `from_errno` or `from_winerror`.
protected def build_message(message, **opts) : String?
protected def build_message(message : String?, **opts) : String?
message
end

Expand Down

0 comments on commit bac4814

Please sign in to comment.