Skip to content

First - #16

Open
pavfedotov wants to merge 1 commit into
Yandex-Practicum:mainfrom
pavfedotov:main
Open

First#16
pavfedotov wants to merge 1 commit into
Yandex-Practicum:mainfrom
pavfedotov:main

Conversation

@pavfedotov

Copy link
Copy Markdown

No description provided.

Comment thread .gitignore
@@ -0,0 +1,2 @@
.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чот не сработал ignore :)

Comment thread encoding/encoding.go

yamlFile, err := os.Create(j.FileOutput)
if err != nil {
fmt.Printf("ошибка при создании файла: %s", err.Error())

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше отдавать ошибку завернутую в свой комент, типа
return fmt.Errorf("что тут случилось, смотрите: %w", err)

А логировать уже выше

@lugingf lugingf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Принято

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants