Skip to content

fix #29828, make use of TypeError more consistent#30272

Merged
JeffBezanson merged 1 commit intomasterfrom
jb/typeerror
Dec 6, 2018
Merged

fix #29828, make use of TypeError more consistent#30272
JeffBezanson merged 1 commit intomasterfrom
jb/typeerror

Conversation

@JeffBezanson
Copy link
Copy Markdown
Member

Eventually the func field of TypeError should be renamed or removed. We basically only need one field (a description of where the problem is), but it's inconvenient for the run time system to form new strings when throwing an error. However we could do what jl_errorf does and format a string, thereby only needing one string field in TypeError. For now I went with something less disruptive.

fix #29828

@JeffBezanson JeffBezanson added error handling Handling of exceptions by Julia or the user minor change Marginal behavior change acceptable for a minor release labels Dec 4, 2018
@JeffBezanson JeffBezanson merged commit 43c2207 into master Dec 6, 2018
@JeffBezanson JeffBezanson deleted the jb/typeerror branch December 6, 2018 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error handling Handling of exceptions by Julia or the user minor change Marginal behavior change acceptable for a minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thrown type error depends on optimizations

1 participant