generate-youtube-tokens: use throw instead of process.exit
fuck off deepsource
This commit is contained in:
parent
2387fc2fbb
commit
d08e2ac04f
1 changed files with 5 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue