mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Merge b10ace1db7 into e74a83a400
This commit is contained in:
commit
ba0c70019e
1 changed files with 7 additions and 0 deletions
|
|
@ -111,6 +111,13 @@ class NativeShare implements IShare {
|
|||
throw new InvalidHostException($errstr);
|
||||
} else if (strpos($errstr, 'Permission denied')) {
|
||||
throw new AccessDeniedException($errstr);
|
||||
} else if (strpos($errstr, 'unknown error (110)') or
|
||||
strpos($errstr, 'unknown error (111)') or
|
||||
strpos($errstr, 'unknown error (112)') or
|
||||
strpos($errstr, 'unknown error (113)')) {
|
||||
// errors for connection timeout, connection refused, host is down and
|
||||
// no route to host, respectively
|
||||
throw new ConnectionError($errstr);
|
||||
} else {
|
||||
throw new \Exception($errstr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue