From 180f76318487d118d1ad42d94584e5876c1193dd Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 13 Sep 2023 13:21:30 +0200 Subject: [PATCH] exception: set default user_cancelled exception message Signed-off-by: Simon Rozman --- include/stdex/exception.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/stdex/exception.hpp b/include/stdex/exception.hpp index af7e29bad..aa90cf2eb 100644 --- a/include/stdex/exception.hpp +++ b/include/stdex/exception.hpp @@ -21,8 +21,7 @@ namespace stdex /// /// \param[in] msg Error message /// - user_cancelled(_In_opt_z_ const char *msg = nullptr) : runtime_error(msg) - { - } + user_cancelled(_In_opt_z_ const char* msg = "operation cancelled") : runtime_error(msg) + {} }; }