Skip to content

Commit 4dda99a

Browse files
committed
Improve spelling in error messages
1 parent e192ef8 commit 4dda99a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/internal/directives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ process_directive(TokenStream& stream, KernelBuilder& builder, Context& ctx) {
449449
} else {
450450
stream.throw_unexpected_token(
451451
t,
452-
"this directive is not supported by kernel_launcher");
452+
"this directive is not supported by kernel launcher");
453453
}
454454
}
455455
}

src/internal/tokens.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ void TokenStream::throw_unexpected_token(
399399

400400
std::stringstream msg;
401401
msg << "error:" << file_ << ":" << line_col.first << ":" << line_col.second
402-
<< ": found invalid token \"" << clean_string(span(begin, end)) << "\"";
402+
<< ": error occured at token \"" << clean_string(span(begin, end))
403+
<< "\"";
403404

404405
if (!reason.empty()) {
405406
msg << ", " << reason;
@@ -422,4 +423,4 @@ std::string TokenStream::span(size_t begin, size_t end) const {
422423
}
423424

424425
} // namespace internal
425-
} // namespace kernel_launcher
426+
} // namespace kernel_launcher

src/pragma.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ KernelBuilder build_pragma_kernel(
3232

3333
throw std::runtime_error(
3434
"kernel '" + kernel_name + "' was not found in file \'" + filename
35-
+ "\'");
35+
+ "\' or was not annotated correctly");
3636
}
3737

3838
PragmaKernel::PragmaKernel(

0 commit comments

Comments
 (0)