Skip to content

Commit 0e140e6

Browse files
Fix parameter passed to output_message func
1 parent 7f31774 commit 0e140e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsyclinterface/helper/source/dpctl_error_handlers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void error_handler(const std::exception &e,
101101
ss << e.what() << " in " << func_name << " at " << file_name << ":"
102102
<< line_num << std::endl;
103103

104-
output_message(ss.str(), error_level);
104+
output_message(ss.str(), error_type);
105105
}
106106
}
107107

@@ -119,6 +119,6 @@ void error_handler(const std::string &what,
119119
ss << what << " in " << func_name << " at " << file_name << ":"
120120
<< line_num << std::endl;
121121

122-
output_message(ss.str(), error_level);
122+
output_message(ss.str(), error_type);
123123
}
124124
}

0 commit comments

Comments
 (0)