Skip to content

Commit

Permalink
Fix bytestring error
Browse files Browse the repository at this point in the history
Fixes this problem:
julia> load("does_not_exist.jl")
no method bytestring(Symbol,)
 in load at util.jl:253

Now it's back to:
julia> load("does_not_exist.jl")
real_path: No such file or directory
 in load at util.jl:253
  • Loading branch information
timholy committed Aug 11, 2012
1 parent 2f1953a commit 9b6fb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end
errno() = ccall(:jl_errno, Int32, ())
strerror(e::Integer) = ccall(:jl_strerror, Any, (Int32,), e)::ByteString
strerror() = strerror(errno())
system_error(p, b::Bool) = b ? throw(SystemError(bytestring(p))) : nothing
system_error(p, b::Bool) = b ? throw(SystemError(string(p))) : nothing

## assertion functions and macros ##

Expand Down

0 comments on commit 9b6fb2c

Please sign in to comment.