diff --git a/amalgamate.py b/amalgamate.py index b2564c5b..af1a2a2e 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -8,7 +8,7 @@ with open("src/opcodes.h", "rt", encoding='utf-8') as f: pipeline = [ ["common.h", "memory.h", "str.h", "tuplelist.h", "namedict.h", "error.h"], ["obj.h", "parser.h", "codeobject.h", "frame.h"], - ["vm.h", "ref.h", "ceval.h", "compiler.h", "repl.h"], + ["gc.h", "vm.h", "ref.h", "ceval.h", "compiler.h", "repl.h"], ["iter.h", "cffi.h", "io.h", "_generated.h", "pocketpy.h"] ] diff --git a/src/main.cpp b/src/main.cpp index 7ac4146f..3de4870f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -69,7 +69,10 @@ int main(int argc, char** argv){ return 1; } std::ifstream file(filepath); - if(!file.is_open()) return 1; + if(!file.is_open()){ + std::cerr << "Failed to open file: " << argv_1 << std::endl; + return 1; + } std::string src((std::istreambuf_iterator(file)), std::istreambuf_iterator()); // set parent path as cwd