cleaned up entry point for dpm core

This commit is contained in:
Chris Punches
2025-03-08 21:52:04 -05:00
parent 255debef50
commit 525462a144
3 changed files with 38 additions and 12 deletions

View File

@@ -149,16 +149,5 @@ int main( int argc, char* argv[] )
}
// execute the module
DPMErrorCategory execute_error = loader.execute_module(args.module_name, args.command);
std::string absolute_modules_path;
loader.get_module_path(absolute_modules_path);
// construct an error object
FlexDPMError result = make_error(execute_error);
result.module_name = args.module_name.c_str();
result.module_path = absolute_modules_path.c_str();
// pair result with a message and exit with the appropriate error code
return handle_error(result);
int return_code = main_execute_module( loader, args.module_name, args.command );
}