Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ public FilesystemPropertiesLoader(@NotNull String filePath, @NotNull ILogger log
properties.load(is);
return properties;
}
} else if (!f.isFile()) {
logger.log(
SentryLevel.ERROR,
"Failed to load Sentry configuration since it is not a file or does not exist: %s",
filePath);
} else if (!f.canRead()) {
logger.log(
SentryLevel.ERROR,
"Failed to load Sentry configuration since it is not readable: %s",
filePath);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Whitespace Path Mismatch

The error messages log the original filePath which may contain whitespace, but the actual file check uses filePath.trim(). This creates confusing logs where the displayed path doesn't match the path that was actually checked, making debugging difficult when paths have leading or trailing whitespace.

Fix in Cursor Fix in Web

}
} catch (IOException e) {
logger.log(
Expand Down
Loading