generate-youtube-tokens: use throw instead of process.exit

fuck off deepsource
This commit is contained in:
dumbmoron 2024-06-08 09:32:23 +00:00
parent 2387fc2fbb
commit d08e2ac04f
No known key found for this signature in database

View file

@ -1,6 +1,10 @@
import { Innertube } from 'youtubei.js';
const bail = (...msg) => (console.error(...msg), process.exit(1));
const bail = (...msg) => {
console.error(...msg);
throw new Error(msg);
};
const tube = await Innertube.create();
tube.session.once(