diff --git a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DynLoadFunctions.java b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DynLoadFunctions.java
index 27f20e86a9d0aa360d9b869389fdfb9b1f13ee0e..fc30f993f4d11c05c2f0cbaa351708e97e62e848 100644
--- a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DynLoadFunctions.java
+++ b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DynLoadFunctions.java
@@ -58,6 +58,8 @@ public class DynLoadFunctions {
                 return dllInfo.toRList();
             } catch (DLLException ex) {
                 // This is not a recoverable error
+                System.out.println("exception while loading " + lib + ":");
+                ex.printStackTrace();
                 throw RInternalError.shouldNotReachHere(ex);
             }
         }