Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
332471ef
Commit
332471ef
authored
Nov 24, 2023
by
Artur Wojcik
Browse files
throw an exception instead returning error"
parent
e2ebe2cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/process.cpp
src/process.cpp
+2
-2
No files found.
src/process.cpp
View file @
332471ef
...
@@ -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
)
+
")"
)
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment