Skip to content

Commit

Permalink
refactor: add missing jsdoc for IncorrectJsonFormatError constructor (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored and setdebarr committed Jan 12, 2024
1 parent a7bd0fa commit 2437ac0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/preview-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ var PULL_REQUEST_ID;
* @returns {Error} IncorrectJsonFormatError.
*/
class IncorrectJsonFormatError extends Error {
/**
* Constructor.
*
* @param {string} message Error message.
*/
constructor(message) {
super(message);
this.name = "IncorrectJsonFormatError";
Expand Down

0 comments on commit 2437ac0

Please sign in to comment.