mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
fix versions with spaces and add warning
This commit is contained in:
parent
f9b7f5c034
commit
891a4e0a0f
@ -27,6 +27,14 @@ class LibraryManager {
|
||||
this.versions['solc'] = solcVersionInConfig;
|
||||
this.versions['web3'] = web3VersionInConfig;
|
||||
this.versions['ipfs-api'] = ipfsApiVersion;
|
||||
|
||||
Object.keys(this.versions).forEach(versionKey => {
|
||||
const newVersion = this.versions[versionKey].trim();
|
||||
if (newVersion !== this.versions[versionKey]) {
|
||||
this.embark.logger.warn(`There a a space in the version of ${versionKey}. We corrected it for you ("${this.versions[versionKey]}" => "${newVersion}").`);
|
||||
this.versions[versionKey] = newVersion;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
registerCommands() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user