From cdbbd6a757ba593ff65c0243ce31ee1a90acb330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 15 Mar 2019 12:47:53 +0100 Subject: [PATCH] vmtester: Handle "invalid argument" error --- test/vmtester/vmtester.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/vmtester/vmtester.cpp b/test/vmtester/vmtester.cpp index 40659e0..10657bf 100644 --- a/test/vmtester/vmtester.cpp +++ b/test/vmtester/vmtester.cpp @@ -1,6 +1,6 @@ // EVMC: Ethereum Client-VM Connector API. -// Copyright 2018 The EVMC Authors. -// Licensed under the Apache License, Version 2.0. See the LICENSE file. +// Copyright 2019 The EVMC Authors. +// Licensed under the Apache License, Version 2.0. #include "vmtester.hpp" @@ -52,6 +52,9 @@ int main(int argc, char* argv[]) case EVMC_LOADER_SYMBOL_NOT_FOUND: std::cerr << "EVMC create function not found in " << vm_path << "\n"; return static_cast(ec); + case EVMC_LOADER_INVALID_ARGUMENT: + std::cerr << "Invalid argument: \"" << vm_path << "\"\n"; + return static_cast(ec); default: std::cerr << "Unexpected error in evmc_load(): " << ec << "\n"; return static_cast(ec);