Commit 7c66b9aa authored by Artur Wojcik's avatar Artur Wojcik
Browse files

throw exception instead returning error

parent dd3a00f9
...@@ -261,9 +261,9 @@ int exec(const std::pair<std::string, std::string>& command, F f) ...@@ -261,9 +261,9 @@ int exec(const std::pair<std::string, std::string>& command, F f)
return static_cast<int>(status); return static_cast<int>(status);
} }
// cppcheck-suppress catchExceptionByValue // cppcheck-suppress catchExceptionByValue
catch(DWORD last_error) catch(DWORD error)
{ {
return last_error; MIGRAPHX_THROW("Error spawning process (" + std::to_string(error) + ")");
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment