keecode logokeecode
78

Config Error

Configuration error

Application

Exit Code Information

Exit Code

78

Name

Config Error

Category

Application

Usage Context

Configuration error detected

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Config Error"
  exit 78
fi

Check Exit Code

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

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

Node.js/JavaScript

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

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

Python

import sys

# Exit with code 78
if error:
    print("Config Error")
    sys.exit(78)