doki-theme / doki-theme-template

Template Repository for creating new themes for different platforms
MIT License
2 stars 1 forks source link

Error stack is altered #1

Closed nopeless closed 1 year ago

nopeless commented 1 year ago

buildSrc/src/BuildThemes.ts at line 68

Please change the error throwing to

    if (typeof e === "object" && e !== null) {
      (
        e as Record<string, unknown>
      ).message = `Unable to build ${masterThemeDefinition.name}'s theme for reasons ${e}`;
    }

    throw e;
  }

As this does not alter the stack trace