Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #6179 (née #8828, non-specific error line number) #8882

Closed
wants to merge 1 commit into from
Closed

Conversation

nolta
Copy link
Member

@nolta nolta commented Nov 3, 2014

Possibly fix #6179 (née #8828).

$ cat test.jl
for i=1:10
    if false |           #Should error on line 2.
        continue
    end
end
julia> include("test.jl")
ERROR: unsupported or misplaced expression 'break' in function 'anonymous'
 in anonymous at no file:2
 in include at ./boot.jl:242
 in include_from_node1 at ./loading.jl:128
while loading /Users/nolta/julia/tt.jl, in expression starting on line 1

@nolta
Copy link
Member Author

nolta commented Nov 25, 2014

Looking at the code again, maybe i should replace emit_error with just_emit_error?

@nolta
Copy link
Member Author

nolta commented Jun 29, 2015

Bump -- this is a tiny little patch.

@nolta nolta closed this Aug 1, 2015
@DilumAluthge DilumAluthge deleted the mn/8828 branch January 12, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

more specific location for syntax errors
1 participant