feat(dump): locate mysqldump/mariadb-dump binary
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace AeonDumpManager\Service\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class DumpBinaryNotFoundException extends RuntimeException
|
||||
{
|
||||
public static function create(array $searched): self
|
||||
{
|
||||
return new self(sprintf(
|
||||
'Could not find a dump binary. Searched for: %s. Configure "dumpBinaryPath" in the plugin settings to point at one explicitly.',
|
||||
implode(', ', $searched)
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user