Skip to content

Conversation

@homuler
Copy link
Contributor

@homuler homuler commented Jan 19, 2023

ファイルのフォーマット違反があった時、panicが発生します。

panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
github.com/ClusterVR/migorate/migration.NewMigration({0x7fffbcfb6aff, 0xf}, {0xc000155b80, 0x46})
...

エラーの原因が分かりにくいので、問題のあるファイルが特定しやすいように、idを出力するようにしました。

@homuler homuler force-pushed the fix/migration-panic branch from 073c8ea to b02ee18 Compare January 19, 2023 08:03
@homuler
Copy link
Contributor Author

homuler commented Jan 19, 2023

CIが落ちたので、 #10 の上に作り直しました。

@homuler homuler changed the base branch from master to chore/go-sum January 19, 2023 08:06
Base automatically changed from chore/go-sum to master June 9, 2023 08:18
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