Don't print error code in UI error messages

It's always -1 now, so providing it is pointless.
This commit is contained in:
Oliver Hamlet
2016-10-09 12:24:47 +01:00
parent bd48a7c83a
commit 49ac37f907
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
persistent: false,
onSuccess: resolve,
onFailure: (errorCode, errorMessage) => {
reject(new Error(`Error code: ${errorCode}; ${errorMessage}`));
reject(new Error(errorMessage));
},
});
});
+1 -1
View File
@@ -34,6 +34,6 @@ describe('query()', () => {
);
it('should fail with an Error object when an error occurs', () =>
loot.query('fail').should.be.rejectedWith(Error, { message: 'Error code: -1; {"name":"fail","args":[]}' })
loot.query('fail').should.be.rejectedWith(Error, { message: '{"name":"fail","args":[]}' })
);
});