diff --git a/Project.toml b/Project.toml index 38d52dd6..60161db8 100644 --- a/Project.toml +++ b/Project.toml @@ -47,7 +47,7 @@ StaticArrays = "^0.12.0, ^1" StructArrays = "0.6" Tables = "^1.0.0" julia = "^1.6" -xrootdgo_jll = "^0.31.1" +xrootdgo_jll = "^0.32.1" [extras] Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45" diff --git a/src/streamsource.jl b/src/streamsource.jl index 8ac211b7..def0f56e 100644 --- a/src/streamsource.jl +++ b/src/streamsource.jl @@ -131,6 +131,9 @@ end function XRDStream(urlbase::AbstractString, filepath::AbstractString, username::AbstractString) file_id = @ccall xrootdgo.Open(urlbase::Cstring, filepath::Cstring, username::Cstring)::Cstring + if unsafe_string(file_id) == "error" + error("xrootd Go library errored.") + end # file_id = @threadcall((:Open, xrootdgo), Cstring, (Cstring, Cstring, Cstring), urlbase, filepath, username) size = @ccall xrootdgo.Size(file_id::Cstring)::Int XRDStream(file_id, 0, size)