PanelChange::rollback($dir, array_key_exists('apply',$opts))); echo json_encode($result, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE) . PHP_EOL; } catch (Throwable $e) { $reason=get_class($e)===RuntimeException::class ? $e->getMessage() : "Inspect journal/conflicts"; fwrite(STDERR, "Rollback stopped: " . $reason . "\n"); exit(1); }