INNER CODE UNIT · JavaScript

terminate

sheerun/graphqlviz · cli.js:59

function terminate () {
  console.error(cli.help)
  process.exit(1)
}

// logs the error and exits
function fatal (e, text) {
  console.error('ERROR processing input. Use --verbose flag to see output.')
  console.error(e.message)

  if (cli.flags.verbose) {
    console.error(text)
    console.error(e.stack)
  }

  process.exit(1)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…