mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-09-08 03:15:17 -05:00
Throw error in script for better visibility
This commit is contained in:
@@ -16,8 +16,7 @@ async function runAsync() {
|
||||
if (pnid) {
|
||||
await updatePnidAccessLevel(pnid, 3, "dev");
|
||||
} else {
|
||||
console.error(`No PNID found for username ${process.argv[1]}.`);
|
||||
process.exit(1);
|
||||
throw new Error(`No PNID found for username ${process.argv[1]}.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user