Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Added logging of process exit code

Jan Curn6674e6490395
diff --git a/package.json b/package.json
index d0d3b5bfb..2ee07124e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "apifier",
- "version": "0.0.27",
+ "version": "0.0.28",
"description": "Apifier runtime for JavaScript",
"main": "build/index.js",
"keywords": [
diff --git a/src/actor.js b/src/actor.js
index a5c4568a3..0954f0f4d 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -137,7 +137,7 @@ export const main = (userFunc) => {
console.error(message);
console.error(err.stack || err);
exited = true;
- // console.log(`exitWithError: ${exitCode}`);
+ console.log(`Exiting with code: ${exitCode}`);
process.exit(exitCode);
};