Commit cf7072d3 authored by Madhur Tandon's avatar Madhur Tandon

Used console.error to make the error of ABI mismatch appear in the logs

parent 37b09135
......@@ -292,7 +292,10 @@ var languagePluginLoader = new Promise((resolve, reject) => {
Module.checkABI = function(ABI_number) {
if (ABI_number !== parseInt('{{ABI}}')) {
throw `ABI numbers differ. Expected {{ABI}}, got ${ABI_number}`;
var ABI_mismatch_exception =
`ABI numbers differ. Expected {{ABI}}, got ${ABI_number}`;
console.error(ABI_mismatch_exception);
throw ABI_mismatch_exception;
}
return true;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment