From c4f2d1e5546e6861a2c2fe72d10f4cc20a65ccf1 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Apr 2025 13:55:04 +0800 Subject: [PATCH] fix: restore missing error handling import in utils.go - Reintroduced the 'github.com/juju/errors' import in utils.go to ensure proper error handling functionality is available in the codebase. --- core/controllers/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/controllers/utils.go b/core/controllers/utils.go index aa2a600a..960542d1 100644 --- a/core/controllers/utils.go +++ b/core/controllers/utils.go @@ -2,7 +2,6 @@ package controllers import ( "encoding/json" - "github.com/juju/errors" "net/http" "reflect" "strings" @@ -14,6 +13,7 @@ import ( "github.com/crawlab-team/crawlab/core/utils" "github.com/crawlab-team/crawlab/trace" "github.com/gin-gonic/gin" + "github.com/juju/errors" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" )