UNPKG

attranslate

Version:

Text Translator for Websites and Apps

15 lines (14 loc) 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logParseWarning = exports.logParseError = void 0; const util_1 = require("../../util/util"); function logParseError(rawMsg, args) { const msg = `Failed to parse ${(0, util_1.getDebugPath)(args.path)} with expected format '${args.format}': ${rawMsg}`; (0, util_1.logFatal)(msg); } exports.logParseError = logParseError; function logParseWarning(rawMsg, args) { const msg = `Warning: Parsing '${args.path}': ${rawMsg}`; console.log(msg); } exports.logParseWarning = logParseWarning;