mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add error handling to autorun
This commit is contained in:
@@ -318,8 +318,12 @@ async function postSetupTasks(result) {
|
||||
const autorunUrl = cliArgs.getAutorunUrl(autorunHostname);
|
||||
|
||||
if (cliArgs.autorun) {
|
||||
try {
|
||||
console.log('Launching in a browser...');
|
||||
await open(autorunUrl.toString());
|
||||
} catch (error) {
|
||||
console.error('Failed to launch the browser. Open the URL manually.');
|
||||
}
|
||||
}
|
||||
|
||||
setWindowTitle('SillyTavern WebServer');
|
||||
|
Reference in New Issue
Block a user