@@ -8,7 +8,7 @@ import defaultLogger from './logger';
88 * @param {string } detailedMessage - The detailed error message to log server-side
99 * @returns {Parse.Error } A Parse.Error with sanitized message
1010 */
11- export function createSanitizedError ( errorCode , detailedMessage ) {
11+ function createSanitizedError ( errorCode , detailedMessage ) {
1212 // On testing we need to add a prefix to the message to allow to find the correct call in the TestUtils.js file
1313 if ( process . env . TESTING ) {
1414 defaultLogger . error ( 'Sanitized error:' , detailedMessage ) ;
@@ -27,7 +27,7 @@ export function createSanitizedError(errorCode, detailedMessage) {
2727 * @param {string } detailedMessage - The detailed error message to log server-side
2828 * @returns {Error } An Error with sanitized message
2929 */
30- export function createSanitizedHttpError ( statusCode , detailedMessage ) {
30+ function createSanitizedHttpError ( statusCode , detailedMessage ) {
3131 // On testing we need to add a prefix to the message to allow to find the correct call in the TestUtils.js file
3232 if ( process . env . TESTING ) {
3333 defaultLogger . error ( 'Sanitized error:' , detailedMessage ) ;
@@ -41,3 +41,4 @@ export function createSanitizedHttpError(statusCode, detailedMessage) {
4141 return error ;
4242}
4343
44+ export { createSanitizedError , createSanitizedHttpError } ;
0 commit comments