Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:aktos-io/aktos-dcs-node into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerem Cem ASLAN committed Sep 22, 2017
2 parents 50e98f7 + 229a38a commit 8d121de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions connectors/omron/omron-protocol-actor.ls
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ message structure:
"""
require! '../..': {Actor}


i = 0
export class OmronProtocolActor extends Actor
(@protocol, opts={}) ->
super (opts.name or 'ProtocolActor')
super (opts.name or "ProtocolActor-#{i++}")

@subscribe that if opts.subscribe

Expand All @@ -33,7 +33,9 @@ export class OmronProtocolActor extends Actor
err, res <~ @protocol.read cmd.addr, cmd.size
@send-response msg, {err: err, res: res}

else if \error of msg.payload
@log.log "this is a error message from outside."
else
err= {message: "got an unknown cmd"}
err= {error: message: "got an unknown cmd"}
@log.warn err.message, msg.payload
@send-response msg, err

0 comments on commit 8d121de

Please sign in to comment.