Commit 245b9248c2456f974906bfc280a7db7e090f2a43

Authored by Eric Fernandez
1 parent f38b099924
Exists in master

paso código como error

Showing 2 changed files with 4 additions and 1 deletions   Show diff stats
... ... @@ -141,7 +141,9 @@ module.exports = function(config) {
141 141 });
142 142  
143 143 })
144   - .catch(reject);
  144 + .catch(() => {
  145 + reject(510);
  146 + });
145 147  
146 148 });
147 149 }
... ... @@ -36,6 +36,7 @@ client.on('open', function open() {
36 36 client.send(JSON.stringify(message));
37 37 }).catch((ee) => {
38 38 console.log('no se guardó' + ee);
  39 + message.code = ee;
39 40 message.ok = 0;
40 41 client.send(JSON.stringify(message));
41 42 });