JuliaLang/julia

Uninformative Broadcast Error Message

Open

#30,438 opened on Dec 18, 2018

View on GitHub
 (7 comments) (5 reactions) (0 assignees)Julia (5,773 forks)batch import
broadcasterror messagesgood first issue

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

A = rand(3,5)
B = rand(2,2)
C = A .+ B

Gives ERROR: DimensionMismatch("arrays could not be broadcast to a common size") as error message. However, it would better to print out the sizes of the input arrays, wouldn't it?

Contributor guide