mirror of https://github.com/pyodide/pyodide.git
Used console.error to make the error of ABI mismatch appear in the logs
This commit is contained in:
parent
37b0913563
commit
cf7072d37b
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue