Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6048 from conr2d/exception
Browse files Browse the repository at this point in the history
Change exception name from wast_file_not_found to wasm_file_not_found
  • Loading branch information
heifner authored Oct 24, 2018
2 parents 66b7e1a + 1ed135d commit a2e5c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/include/eosio/chain/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ namespace eosio { namespace chain {
3160007, "Invalid contract vm version" )
FC_DECLARE_DERIVED_EXCEPTION( set_exact_code, contract_exception,
3160008, "Contract is already running this version of code" )
FC_DECLARE_DERIVED_EXCEPTION( wast_file_not_found, contract_exception,
3160009, "No wast file found" )
FC_DECLARE_DERIVED_EXCEPTION( wasm_file_not_found, contract_exception,
3160009, "No wasm file found" )
FC_DECLARE_DERIVED_EXCEPTION( abi_file_not_found, contract_exception,
3160010, "No abi file found" )

Expand Down
2 changes: 1 addition & 1 deletion programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@ int main( int argc, char** argv ) {

std::cerr << localized(("Reading WASM from " + wasmPath + "...").c_str()) << std::endl;
fc::read_file_contents(wasmPath, wasm);
EOS_ASSERT( !wasm.empty(), wast_file_not_found, "no wasm file found ${f}", ("f", wasmPath) );
EOS_ASSERT( !wasm.empty(), wasm_file_not_found, "no wasm file found ${f}", ("f", wasmPath) );

const string binary_wasm_header("\x00\x61\x73\x6d\x01\x00\x00\x00", 8);
if(wasm.compare(0, 8, binary_wasm_header))
Expand Down

0 comments on commit a2e5c7d

Please sign in to comment.