mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
added better error reporting
This commit is contained in:
@ -284,11 +284,11 @@ if (dnsPreferIPv6) {
|
|||||||
const ipOptions = ['enabled', 'auto', 'disabled'];
|
const ipOptions = ['enabled', 'auto', 'disabled'];
|
||||||
|
|
||||||
if (!ipOptions.includes(enableIPv6)) {
|
if (!ipOptions.includes(enableIPv6)) {
|
||||||
console.error('`protocol: ipv6` option invalid');
|
console.error('`protocol: ipv6` option invalid\n use:', ipOptions);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
if (!ipOptions.includes(enableIPv4)) {
|
if (!ipOptions.includes(enableIPv4)) {
|
||||||
console.error('`protocol: ipv4` option invalid');
|
console.error('`protocol: ipv4` option invalid\n use:', ipOptions);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user