Skip to content

more specific location for syntax errors #6179

Closed
@maximsch2

Description

@maximsch2

test.jl:

function test(a, b)
  c = 0
  d = 3
  d = d + a(b, d]
end

julia test.jl:

ERROR: syntax: unexpected "]" in argument list in include_from_node1 at loading.jl:120 while loading test.jl, in expression starting on line 1

It would be better if the error will be point out more precisely (instead of just pointing at the beginning of the function).

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions