keecode logokeecode
13

Unfinished Top-Level Await

Unfinished top-level await

Node.js

Exit Code Information

Exit Code

13

Name

Unfinished Top-Level Await

Category

Node.js

Usage Context

Top-level await did not complete

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Unfinished Top-Level Await"
  exit 13
fi

Check Exit Code

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

# Check if exit code matches
if [ $? -eq 13 ]; then
  echo "Unfinished Top-Level Await"
fi

Node.js/JavaScript

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

// Or throw error that results in exit code
if (error) {
  console.error('Unfinished Top-Level Await');
  process.exit(13);
}

Python

import sys

# Exit with code 13
if error:
    print("Unfinished Top-Level Await")
    sys.exit(13)