Skip to content

Commit

Permalink
chore: prettify the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Oct 25, 2023
1 parent 6a9fea9 commit 2b52168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export class API {
getFormByName(name: string): FormDefinition | undefined {
const form = this.plugin.settings?.formDefinitions.find((form) => form.name === name);
if (form instanceof MigrationError) {
log_notice('The form you tried to load hs an invalid format', `
The form ${name} has an invalid format.
We tried to automatically convert it but it failed, please fix it manually in the forms manager.
log_notice('🚫 The form you tried to load has an invalid format',
`The form "${name}" has an invalid format.`+
`We tried to automatically convert it but it failed, please fix it manually in the forms manager.
`)
return undefined;
} else {
Expand Down

0 comments on commit 2b52168

Please sign in to comment.