keecode logokeecode
3

Internal Error

Internal JavaScript parse error

Node.js

Exit Code Information

Exit Code

3

Name

Internal Error

Category

Node.js

Usage Context

JavaScript syntax error in Node.js code

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Internal Error"
  exit 3
fi

Check Exit Code

./script.sh
echo $?  # Prints the exit code

# Check if exit code matches
if [ $? -eq 3 ]; then
  echo "Internal Error"
fi

Node.js/JavaScript

// Exit with code 3
process.exit(3);

// Or throw error that results in exit code
if (error) {
  console.error('Internal Error');
  process.exit(3);
}

Python

import sys

# Exit with code 3
if error:
    print("Internal Error")
    sys.exit(3)