Crash Reporter command doesn't support relative directories (fix #99143)
This commit is contained in:
parent
1047679bc1
commit
6e359a9f77
|
@ -42,6 +42,11 @@ let crashReporterDirectory = args['crash-reporter-directory'];
|
|||
if (crashReporterDirectory) {
|
||||
crashReporterDirectory = path.normalize(crashReporterDirectory);
|
||||
|
||||
if (!path.isAbsolute(crashReporterDirectory)) {
|
||||
console.error(`The path '${crashReporterDirectory}' specified for --crash-reporter-directory must be absolute.`);
|
||||
app.exit(1);
|
||||
}
|
||||
|
||||
if (!fs.existsSync(crashReporterDirectory)) {
|
||||
try {
|
||||
fs.mkdirSync(crashReporterDirectory);
|
||||
|
|
Loading…
Reference in a new issue