mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-06 07:06:02 +00:00
generate-youtube-tokens: use throw instead of process.exit
fuck off deepsource
This commit is contained in:
parent
2387fc2fbb
commit
d08e2ac04f
|
@ -1,6 +1,10 @@
|
||||||
import { Innertube } from 'youtubei.js';
|
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();
|
const tube = await Innertube.create();
|
||||||
|
|
||||||
tube.session.once(
|
tube.session.once(
|
||||||
|
|
Loading…
Reference in a new issue