Skip to content

Commit

Permalink
Update packages/main/src/plugin/troubleshooting.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Florent BENOIT <fbenoit@redhat.com>
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
  • Loading branch information
cdrage and benoitf committed Feb 7, 2024
1 parent 5d5ddbc commit 094b21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/plugin/troubleshooting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Troubleshooting {

private async getFileSystemContent(filePath: string, logName: string): Promise<FileMap> {
try {
const content = await fs.promises.readFile(filePath, 'utf8');
const content = await fs.promises.readFile(filePath, 'utf-8');
return { fileName: generateLogFileName(SYSTEM_FILENAME + '-' + logName), content };
} catch (error) {
console.error(`Error reading file from ${filePath}: `, error);
Expand Down

0 comments on commit 094b21f

Please sign in to comment.