solc
Version:
Solidity compiler
18 lines (17 loc) • 483 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatFatalError = void 0;
function formatFatalError(message) {
return JSON.stringify({
errors: [
{
type: 'JSONError',
component: 'solcjs',
severity: 'error',
message: message,
formattedMessage: 'Error: ' + message
}
]
});
}
exports.formatFatalError = formatFatalError;
;