opensourceBIM / BIMserver-JavaScript-API

BIMserver JavaScript API
GNU Lesser General Public License v3.0
55 stars 35 forks source link

Correctly calls `errorCallback` if there is only one request #19

Closed GiacomoManzoli closed 5 years ago

GiacomoManzoli commented 5 years ago

I've noticed that with a single request to a bimserverclient.multiCall call which returns an error the errorCallback function isn't called.

How to verify the error:

  1. Create a BIMServer project with 2 revision.
  2. Make a single call with callWithNoIndication("LowLevelInterface","getDataObjectByOid") passing a request for an oid passing a roid where the oid doesn't exists. There is an error, but the errorCallback (with the distrubuted code) isn't called. With the pulled request version it's called.

I've attached a (almost) ready to use example.

PullRequestSample.zip