Skip to content

Commit

Permalink
Keno's recent backtraces work has added backtraces for these errors!
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 5, 2014
1 parent 4a2fcf4 commit d481350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/manual/strings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,11 @@ Using an index less than 1 or greater than ``end`` raises an error:

julia> str[0]
ERROR: BoundsError()
in getindex at /Users/sabae/src/julia/usr/lib/julia/sys.dylib (repeats 2 times)

This comment has been minimized.

Copy link
@JeffBezanson

JeffBezanson Aug 5, 2014

Member

Not good. These will only pass on mac.

This comment has been minimized.

Copy link
@staticfloat

staticfloat Aug 5, 2014

Author Member

Oh, of course. Well, darn. We may need something smarter here then, since the messages will necessarily differ across platforms. I'll open an issue.

This comment has been minimized.

Copy link
@Keno

Keno Aug 5, 2014

Member

A better question is actually why we are not getting source lines for these. Unfortunately I think that may be an LLVM 3.3 bug.


julia> str[end+1]
ERROR: BoundsError()
in getindex at /Users/sabae/src/julia/usr/lib/julia/sys.dylib (repeats 2 times)

You can also extract a substring using range indexing:

Expand Down

0 comments on commit d481350

Please sign in to comment.