Skip to content

Commit 3396b01

Browse files
committed
MQTT Sparkplug client: fix error message display.
1 parent d30df56 commit 3396b01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mqtt-sparkplug/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const Redundancy = require('./redundancy')
3535
const AutoTag = require('./auto-tag')
3636
const { castSparkplugValue: castSparkplugValue } = require('./cast')
3737

38-
process.on('uncaughtException', err => Log.log('Uncaught Exception:' + JSON.stringify(err)))
38+
process.on('uncaughtException', (err) =>
39+
Log.log('Uncaught Exception: ' + err.message)
40+
)
3941

4042
const SparkplugNS = 'spBv1.0'
4143
const DevicesList = [] // contains either EoN nodes or devices

0 commit comments

Comments
 (0)