Skip to content

Commit

Permalink
Merge pull request #641 from fdopen/report-symbol
Browse files Browse the repository at this point in the history
Report names of missing symbols also under windows
  • Loading branch information
fdopen authored Apr 21, 2020
2 parents 84f74c3 + 93346e9 commit c9481e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ctypes-foreign-base/dl.ml.win
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,7 @@ let dlsym ?handle ~symbol =
| Dlsy_ok v -> v
| Dlsy_unknown -> draise "dlsym" unknown
| Dlsy_nomem -> draise "dlsym" nomem
| Dlsy_enoent -> draise "dlsym" "no such symbol"
| Dlsy_enoent ->
let msg = Printf.sprintf "no such symbol: %S" symbol in
draise "dlsym" msg
| Dlsy_error x -> draise "dlsym" x

0 comments on commit c9481e3

Please sign in to comment.