v3mt
Version:
A CLI toolkit for managing and deploying Victoria 3 mods, including sending mod files to the game, launching the game, and more.
13 lines (12 loc) • 547 B
JavaScript
import promptSelectFile from '../../../tools/prompts/select-filesystem.js';
import findErrorLog from '../../../utils/filesystem/game/find-error-log.js';
export default async function requestErrorLog() {
const foundErrorLog = findErrorLog();
const ERROR_LOG = await promptSelectFile({
type: 'file',
message: 'Please select error log file (example: C:/Users/<USER>/Documents/Paradox Interactive/Victoria 3/logs/error.log)',
default: foundErrorLog ?? undefined,
required: true,
});
return ERROR_LOG;
}