Skip to content

Commit

Permalink
protect from null dtype.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Aug 30, 2023
1 parent 630327b commit 894eef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lantern/src/Dtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void* _lantern_Dtype_from_string (void* dtype_str) {
LANTERN_FUNCTION_START

if (!dtype_str) {
std::runtime_error("Error dtype can't be NULL");
throw std::runtime_error("Error dtype can't be NULL");
}

auto str = from_raw::string(dtype_str);
Expand Down

0 comments on commit 894eef7

Please sign in to comment.