keecode logokeecode
74

IO Error

Input/output error

Application

Exit Code Information

Exit Code

74

Name

IO Error

Category

Application

Usage Context

Error occurred during I/O operation

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "IO Error"
  exit 74
fi

Check Exit Code

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

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

Node.js/JavaScript

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

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

Python

import sys

# Exit with code 74
if error:
    print("IO Error")
    sys.exit(74)