Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit da69edf

Browse files
fix: wrong check for printing log (#1968)
Co-authored-by: sangjanai <[email protected]>
1 parent cd8938a commit da69edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/services/engine_service.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ cpp::result<void, std::string> EngineService::DownloadEngine(
320320
engine, // engine_name
321321
kLocal, "", "", normalize_version, variant.value(), "Default", "");
322322

323-
if (create_res.has_value()) {
323+
if (create_res.has_error()) {
324324
CTL_ERR("Failed to create engine entry: " << create_res->engine_name);
325325
} else {
326326
CTL_INF("Engine entry created successfully");

0 commit comments

Comments
 (0)