function handleExecFileError (err) {
  console.error(err)
  if (err.error.killed) {
    // process was killed by timeout
    throw createError(400, 'Java execution timed out')
  } else {
    console.log('compilation error')
    return err.stdout
  }
}
/**
 * throws the correct HttpError when an error is thrown running the docker container that runs and compiles the java code
 * or returns the output if it was just a compilation error
 * @param {Error} err
 * @returns {string} compilation error output
 */
throws the correct HttpError when an error is thrown running the docker container that runs and compiles the java code
or returns the output if it was just a compilation error
@param {Error} err
@returns {string} compilation error output
throws the correct HttpError when an error is thrown running the docker container that runs and compiles the java code or returns the output if it was just a compilation error @param { Error } err @returns { string } compilation error output
function handleExecFileError (err) {
  console.error(err)
  if (err.error.killed) {
    throw createError(400, 'Java execution timed out')
  } else {
    console.log('compilation error')
    return err.stdout
  }
}
function handleExecFileError ( err ) { console . error ( err ) if ( err . error . killed ) { throw createError ( 400 , 'Java execution timed out' ) } else { console . log ( 'compilation error' ) return err . stdout } }
throws the correct HttpError when an error is thrown running the docker container that runs and compiles the java code
 or returns the output if it was just a compilation error
 @param {Error} err
 @returns {string} compilation error output
throws the correct HttpError when an error is thrown running the docker container that runs and compiles the java code or returns the output if it was just a compilation error @param { Error } err @returns { string } compilation error output
// process was killed by timeout