From 1395d849470cc564d593bd2074a69f012e4f70ce Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 29 Jun 2022 23:46:53 +0530 Subject: migrated from MAL2Go v1 to v2 --- mal/user.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mal/user.go') diff --git a/mal/user.go b/mal/user.go index 4d7aa45..f6e9ce7 100644 --- a/mal/user.go +++ b/mal/user.go @@ -19,9 +19,16 @@ along with this program. If not, see . package mal import ( - u "github.com/MikunoNaka/MAL2Go/user" + u "github.com/MikunoNaka/MAL2Go/v2/user" + "fmt" + "os" ) func GetUserInfo() u.UserInfo { - return userClient.GetSelfUserInfo() + userInfo, err := userClient.GetSelfUserInfo() + if err != nil { + fmt.Println("Error fetching User Information:", err) + os.Exit(1) + } + return userInfo } -- cgit v1.2.3