Skip to content

[WARN]can't find config file from ./whodid.json #1

@T04435

Description

@T04435

Hi I have modified my whodid.json

{ "ignore":[ ".+md", ".+/node_modules/.+", "package.json" ] }

And I get the Title as a warning. I notice that the whodid output did not change after the file updated.
So by looking at this file
`whodid-config.js
function load_from_file(config_filename, cwd){

if(!cwd)
	cwd = "./"
else if (cwd[cwd.length-1] != "/")
	cwd = cwd+"/"

let config_file_path = cwd+config_filename

if(fs.existsSync(config_file_path)) {
	var confFile = fs.readFileSync(config_file_path, 'utf8');
	_m.config = Object.assign(_m.config, JSON.parse(confFile))
	console.log("config loaded from ", config_file_path)
}
else {
	console.log(utils.red("[WARN]can't find config file from "+config_file_path)) // My console output
}

}`

The file is not loading??

I installed by: npm i -g whodid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions