Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 15, 2025
1 parent 0cbe148 commit 9cdf90b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/protectFs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ export default class ProtectFs {
throw new Error('Permission denied');
}
if (!readOnly && filePath.startsWith(join(this.ioBrokerDataDir, 'files'))) {
this.log.error(
`May not read ${(file as PathLike).toString()} - use ${readOnly ? 'readFile' : 'writeFile'} instead`,
);
this.log.error(`May not read ${(file as PathLike).toString()} - use writeFile instead`);
throw new Error('Permission denied');
}
}
Expand Down

0 comments on commit 9cdf90b

Please sign in to comment.