Skip to content

Commit

Permalink
Report failure to load when running under debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Nov 12, 2019
1 parent 8db7c2f commit 3899c27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CUDAdrv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ function __init__()
__initialized__[] = true
catch ex
# don't actually fail to keep the package loadable
@debug("CUDAdrv.jl failed to initialize; the package will not be functional.",
exception=(ex, catch_backtrace()))
@debug begin
@error("Error thrown during package initialization",
exception=(ex, catch_backtrace()))
"CUDAdrv.jl failed to initialize; the package will not be functional."
end
end
end

Expand Down

0 comments on commit 3899c27

Please sign in to comment.