@@ -44,6 +44,7 @@ const RESOURCES_PATH = APP_PATH.endsWith('app.asar')
44
44
? path . dirname ( APP_PATH ) // If we're bundled, resources are above the bundle
45
45
: APP_PATH ; // Otherwise everything is in the root of the app
46
46
const LOGS_PATH = app . getPath ( 'logs' ) ;
47
+ const LAST_RUN_LOG_PATH = path . join ( LOGS_PATH , 'last-run.log' ) ;
47
48
48
49
// Keep a global reference of the window object, if you don't, the window will
49
50
// be closed automatically when the JavaScript object is garbage collected.
@@ -125,7 +126,7 @@ if (!amMainInstance) {
125
126
console . log ( 'Not the main instance - quitting' ) ;
126
127
app . quit ( ) ;
127
128
} else {
128
- const logStream = createWriteStream ( path . join ( LOGS_PATH , 'last-run.log' ) ) ;
129
+ const logStream = createWriteStream ( LAST_RUN_LOG_PATH ) ;
129
130
logStream . write ( `--- Launching HTTP Toolkit desktop v${ DESKTOP_VERSION } ---\n` ) ;
130
131
131
132
const args = yargs
@@ -458,7 +459,9 @@ if (!amMainInstance) {
458
459
459
460
showErrorAlert (
460
461
'HTTP Toolkit hit an error' ,
461
- `${ error . message } .\n\nPlease file an issue at github.com/httptoolkit/httptoolkit.`
462
+ `${ error . message } .\n\n` +
463
+ `See ${ LAST_RUN_LOG_PATH } for more details.\n\n` +
464
+ `Please file an issue at github.com/httptoolkit/httptoolkit.`
462
465
) ;
463
466
464
467
// Retry limited times, but not for near-immediate failures.
0 commit comments