Skip to content

Commit

Permalink
fix(typo): correct "unable" being spelled as "unnable" in multiple in…
Browse files Browse the repository at this point in the history
…stances
  • Loading branch information
Blumlaut committed Dec 28, 2021
1 parent 4f545dd commit dc28bd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ When executing txAdmin, it might show you some errors. Example of an [error](htt
If you get `cannot read file`, it means the admin file `txData/admins.json` doesn't exist or txAdmin doesn't have permission to read it.
Any other error message means you somehow broke the admins file, delete it and restart txAdmin to generate a new one.

### [txAdmin:ConfigVault] Error: Unnable to load configuration file `txData/<profile>/config.json`
### [txAdmin:ConfigVault] Error: Unable to load configuration file `txData/<profile>/config.json`
The selected profile (or `default`) cannot be loaded due to permission issues (eg file owned by the root account), or due to broken JSON.

## Problems starting the server
Expand Down
4 changes: 2 additions & 2 deletions src/components/configVault.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = class ConfigVault {
try {
rawFile = fs.readFileSync(this.configFilePath, 'utf8');
} catch (error) {
throw new Error(`Unnable to load configuration file '${this.configFilePath}'. (cannot read file, please read the documentation)\nOriginal error: ${error.message}`);
throw new Error(`Unable to load configuration file '${this.configFilePath}'. (cannot read file, please read the documentation)\nOriginal error: ${error.message}`);
}

//Try to parse config file
Expand All @@ -80,7 +80,7 @@ module.exports = class ConfigVault {
cfgData = JSON.parse(rawFile);
} catch (error) {
if (rawFile.includes('\\')) logError(`Note: your 'txData/${this.serverProfile}/config.json' file contains '\\', make sure all your paths use only '/'.`);
throw new Error(`Unnable to load configuration file '${this.configFilePath}'. \nOriginal error: ${error.message}`);
throw new Error(`Unable to load configuration file '${this.configFilePath}'. \nOriginal error: ${error.message}`);
}

return cfgData;
Expand Down
2 changes: 1 addition & 1 deletion src/components/statsCollector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = class StatsCollector {
await fs.writeFile(this.hardConfigs.heatmapDataFile, '[]');
this.perfSeries = [];
} catch (error) {
logError(`Unnable to create stats_heatmapData_v1 with error: ${error.message}`);
logError(`Unable to create stats_heatmapData_v1 with error: ${error.message}`);
process.exit();
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/statsCollector/timeSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = class TimeSeries {
fs.writeFileSync(file, '[]');
rawFile = '[]';
} catch (error) {
throw new Error('Unnable to create timeseries file.');
throw new Error('Unable to create timeseries file.');
}
}

Expand Down

0 comments on commit dc28bd5

Please sign in to comment.