tools/kevoree-gen-model/kevoree-gen-model.js
function errHandler(err) {
    process.stderr.write(chalk.red('Model generation failed!') + '\n');

    switch (err.code) {
      default:
        case 'PARSE_FAIL':
        if (!quiet) {
          process.stderr.write('\n' + err.stack + '\n');
        }
      break;

      case 'ENOENT':
          if (!quiet) {
            process.stderr.write('\n' + err.stack.replace('ENOENT, lstat ', 'unable to find ') + '\n');
          }
        break;
    }
    callback(err);
  }
function errHandler(err) {
    process.stderr.write(chalk.red('Model generation failed!') + '\n');

    switch (err.code) {
      default:
        case 'PARSE_FAIL':
        if (!quiet) {
          process.stderr.write('\n' + err.stack + '\n');
        }
      break;

      case 'ENOENT':
          if (!quiet) {
            process.stderr.write('\n' + err.stack.replace('ENOENT, lstat ', 'unable to find ') + '\n');
          }
        break;
    }
    callback(err);
  }
function errHandler ( err ) { process . stderr . write ( chalk . red ( 'Model generation failed!' ) + '\n' ) ; switch ( err . code ) { default : case 'PARSE_FAIL' : if ( ! quiet ) { process . stderr . write ( '\n' + err . stack + '\n' ) ; } break ; case 'ENOENT' : if ( ! quiet ) { process . stderr . write ( '\n' + err . stack . replace ( 'ENOENT, lstat ' , 'unable to find ' ) + '\n' ) ; } break ; } callback ( err ) ; }
Handles Error object
@param err
Handles Error object