Skip to content

Commit

Permalink
Fix error translation strings for federation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Feb 14, 2025
1 parent 5bc444f commit ce8a4a6
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export default {
// Reset update flag
crtModule.updated = false
})
.catch(this.toastErrorHandler(this.$t('edit.federationSettings.persist.mmap')))
.catch(this.toastErrorHandler(this.$t('edit.federationSettings.error.persist.mmap')))
}
}
Expand Down Expand Up @@ -504,7 +504,7 @@ export default {
// Reset update flag
(this.upstream[nodeID] || {}).updated = false
})
.catch(this.toastErrorHandler(this.$t('edit.federationSettings.persist.exposed')))
.catch(this.toastErrorHandler(this.$t('edit.federationSettings.error.persist.exposed')))
if (!response && !response.moduleID) {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (s *Store) Query{{ .expIdentPlural }}(
}

if err != nil {
err = fmt.Errorf("could generate filter expression for {{ .expIdent }}: %w", err)
err = fmt.Errorf("could not generate filter expression for {{ .expIdent }}: %w", err)
return
}

Expand All @@ -408,7 +408,7 @@ func (s *Store) Query{{ .expIdentPlural }}(
{{ if .features.sorting }}
// sorting feature is enabled
if sortExpr, err = order(f.Sort, s.{{ .api.sortableFields.fnIdent }}()); err != nil {
err = fmt.Errorf("could generate order expression for {{ .expIdent }}: %w", err)
err = fmt.Errorf("could not generate order expression for {{ .expIdent }}: %w", err)
return
}

Expand Down
Loading

0 comments on commit ce8a4a6

Please sign in to comment.