diff --git a/packages/composer-common/lib/connectionprofilemanager.js b/packages/composer-common/lib/connectionprofilemanager.js index 2fbc0a5d7e..87dfce6fc9 100644 --- a/packages/composer-common/lib/connectionprofilemanager.js +++ b/packages/composer-common/lib/connectionprofilemanager.js @@ -147,8 +147,9 @@ class ConnectionProfileManager { } } } catch (e) { - LOG.debug(METHOD,e); - throw new Error(`Failed to load connector module "${mod}" for connection profile "${connectionProfile}"`); + const newError = new Error(`Failed to load connector module "${mod}" for connection profile "${connectionProfile}". ${e}`); + LOG.error(METHOD, newError); + throw newError; } connectionManagers[data.type] = connectionManager; }