Adds check against failure to deploy codex contracts

This commit is contained in:
benbierens 2023-08-07 11:21:26 +02:00
parent 85b8b6122f
commit 2bafab8b22
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 6 additions and 1 deletions

View File

@ -91,8 +91,13 @@ namespace DistTestCore.Marketplace
{
debug(line);
if (line.Contains(RequiredCompiledString)) SeenCompileString = true;
if (line.Contains(ReadyString))
{
if (!SeenCompileString) throw new Exception("CodexContracts deployment failed. " +
"Solidity files not compiled before process exited.");
if (SeenCompileString && line.Contains(ReadyString)) Found = true;
Found = true;
}
}
}
}