diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 79443ce09..ee50771b9 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -1801,7 +1801,7 @@ func (m *Messenger) ExtractDiscordDataFromImportFiles(filesToImport []string) (* bytes, err := os.ReadFile(filePath) if err != nil { errors[fileToImport] = &discord.ImportError{ - Code: 201, + Code: 2, Message: err.Error(), } continue @@ -1812,7 +1812,7 @@ func (m *Messenger) ExtractDiscordDataFromImportFiles(filesToImport []string) (* err = json.Unmarshal(bytes, &discordExportedData) if err != nil { errors[fileToImport] = &discord.ImportError{ - Code: 202, + Code: 2, Message: err.Error(), } continue @@ -1820,7 +1820,7 @@ func (m *Messenger) ExtractDiscordDataFromImportFiles(filesToImport []string) (* if len(discordExportedData.Messages) == 0 { errors[fileToImport] = &discord.ImportError{ - Code: 203, + Code: 2, Message: "No messages to import", } continue