Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 4b9add1

Browse files
authored
Merge pull request #133 from icewind1991/log-invalid-path
include the invalid path in error message
2 parents e6904cb + 6f5b94d commit 4b9add1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractShare.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct() {
2323
protected function verifyPath(string $path): void {
2424
foreach ($this->forbiddenCharacters as $char) {
2525
if (strpos($path, $char) !== false) {
26-
throw new InvalidPathException('Invalid path, "' . $char . '" is not allowed');
26+
throw new InvalidPathException("Invalid path \"$path\", \"$char\" is not allowed");
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)