You missed a golden opportunity to experience the Joy of `Q.spread`!
```
return Q.spread([jsDeferred, pixmapDeferred]).then(function (response, buffer) {
  if (\* error test *\) {
    throw new Error(\* explanation *\);
  }
 
  if (pixmap.boundsOnly) {
    return response;
  } else {
    var pixmap = new xpm.Pixmap(buffer);
    pixmap.bounds = response.bounds;
    return pixmap;
  }
}
```
But, again, whatever; totally aesthetic.