mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-29 03:45:15 +00:00
11 lines
263 B
JavaScript
11 lines
263 B
JavaScript
/**
|
|
* Creates an error with the plugin's prefix.
|
|
* @param {string} message The error's message.
|
|
* @returns {Error} The created error object.
|
|
*/
|
|
function createError(message) {
|
|
return new Error(`[React Refresh] ${message}`);
|
|
}
|
|
|
|
module.exports = createError;
|