title: Appcelerator Titanium build error about log-server-port masks the real error
body: <p>This is relatively minor, and I wasn't able to find any other record of this issue, but it cost me several stressful hours. I'm considering opening an Appcelerator Jira ticket about this bug, so any feed back is welcome before I do so. Questions: Are there any other workarounds besides what I wrote below? What are some better ways to log the actual error?</p>
  
  <p><strong>Environment</strong></p>
  
  <p>Titanium SDK: 7.0.2.GA
  Javascript Engine: V8 
  Platform &amp; version: iOS 11.2
  Device Details: iOS simulator (iPhone 7+)
  Host Operating System: OS X 10.13 64 bit
  Node Version: 7.10.0
  Titanium CLI: 5.0.14
  Npm Version: 4.2.0</p>
  
  <p><strong>Description</strong></p>
  
  <p>When building an iOS app and there is an issue connecting to the iOS log-server, it always output "Another process is currently bound to port xxxxx" even if there is another server connection issue such as the port not existing.</p>
  
  <p><strong>Workaround</strong></p>
  
  <p>Figure out the real issue by logging the actual error within the sdk itself (at ~/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/iphone/cli/commands/_build.js in the determineLogServerPort function).</p>
  
  <p><strong>Steps to Reproduce</strong></p>
  
  <ol>
  <li>Create a different type of error with the server. For example, my /etc/hosts file did not have an entry for 127.0.0.1 localhost, so the actual node error was 'ENOTFOUND'.</li>
  <li>Create a new titanium app with <code>appc ti new</code>.</li>
  <li>Build with appc ti build -p ios</li>
  </ol>
  
  <p><strong>Actual Result</strong></p>
  
  <p>Build errors out with following text:</p>
  
  <pre><code>[ERROR] Another process is currently bound to port 27973
  [ERROR] Set a unique &lt;log-server-port&gt; between 1024 and 65535 in the &lt;ios&gt; section of the tiapp.xml
  </code></pre>
  
  <p><strong>Expected Result</strong></p>
  
  <p>More detailed error. I.E. Something like:</p>
  
  <p><code>Failed to create/connect to log server port with error "[error given by node net package]".</code>
  Followed by suggested solution. For example if the node error was EADDRINUSE, then you could still use the existing error message. But if it's another error, log accordingly so the user has the best information for solving the issue.</p>