keecode logokeecode
65

Data Error

Data format error

Application

Exit Code Information

Exit Code

65

Name

Data Error

Category

Application

Usage Context

Input data was incorrect

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Data Error"
  exit 65
fi

Check Exit Code

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

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

Node.js/JavaScript

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

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

Python

import sys

# Exit with code 65
if error:
    print("Data Error")
    sys.exit(65)