mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix exception throwing
This commit is contained in:
parent
088fa6d54b
commit
79b69c635b
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class Exception extends \Exception {
|
||||||
$message .= ' for ' . $path;
|
$message .= ' for ' . $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Exception($message, $error);
|
return new Exception($message, is_string($error) ? 0 : $error);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue