mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Fix error-catch problem and some refactoring.
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = syrup.serial()
|
||||
, reply.okay(mounted ? 'sd_mounted' : 'sd_unmounted')
|
||||
])
|
||||
})
|
||||
.error(function(err) {
|
||||
.catch(function(err) {
|
||||
log.error('Getting SD card Status', err.stack)
|
||||
push.send([
|
||||
channel
|
||||
|
||||
Reference in New Issue
Block a user