Skip to content

Commit

Permalink
Include error code into error message for unknown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Mar 21, 2019
1 parent 192137a commit 84db53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vexcl/backend/cuda/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ inline std::ostream& operator<<(std::ostream &os, CUresult rc) {
VEXCL_CUDA_ERR2TXT(CUDA_ERROR_NOT_SUPPORTED);
VEXCL_CUDA_ERR2TXT(CUDA_ERROR_UNKNOWN);
default:
os << "Unknown error";
os << "Unknown error " << rc;
}
#undef VEXCL_CUDA_ERR2TXT
return os << ")";
Expand Down

1 comment on commit 84db53f

@ddemidov
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Please sign in to comment.