1
0
mirror of https://github.com/danog/telerpc.git synced 2024-11-29 20:29:08 +01:00
This commit is contained in:
Daniil Gentili 2024-07-20 21:35:06 +02:00
parent 08747a666f
commit b3d2302b37

View File

@ -288,7 +288,7 @@ final class Main implements RequestHandler
if (!($res['description'] ?? null)) {
$methods = \implode(', ', $methods);
$description = \readline('Insert description for '.$error.' ('.$methods.'): ');
if (\strpos(\readline($error.' - '.$description.' OK? '), 'n') !== false) {
if (\strpos(\readline($error.' - '.$description.' OK? '), 'n') !== false || !$description) {
continue;
}
if ($description === 'drop' || $description === 'delete' || $description === 'd') {