From 02ff6cb18e565ce966dc04040266649aaf9de3a9 Mon Sep 17 00:00:00 2001
From: Lukas Stadler <lukas.stadler@oracle.com>
Date: Fri, 25 Sep 2015 16:02:05 +0200
Subject: [PATCH] (temp) output errors during native library loading to console

---
 .../oracle/truffle/r/nodes/builtin/base/DynLoadFunctions.java   | 2 ++
 1 file changed, 2 insertions(+)

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 27f20e86a9..fc30f993f4 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);
             }
         }
-- 
GitLab