src/server.js
/*
 * Throws an error if there's any problem with the control data.
 */
Throws an error if there's any problem with the control data.
Throws an error if there ' s any problem with the control data .
function validate(json_control_data) {
  if( typeof json_control_data !== 'object' )
    return new Error('Not a JSON object, was: ' + typeof json_control_data);
  return json_control_data;
}
function validate ( json_control_data ) { if ( typeof json_control_data !== 'object' ) return new Error ( 'Not a JSON object, was: ' + typeof json_control_data ) ; return json_control_data ; }
Throws an error if there's any problem with the control data.
Throws an error if there ' s any problem with the control data .