@supernova-studio/model 1.6.8 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -816,7 +816,8 @@ var SupernovaException = class _SupernovaException extends Error {
816
816
  // Properties
817
817
  //
818
818
  constructor(type, message) {
819
- super(`${type}: ${message}`);
819
+ const fullMessage = message || `${type}: something went wrong`;
820
+ super(fullMessage);
820
821
  this.type = type;
821
822
  }
822
823
  static wrongFormat(message) {