diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-04 01:38:43 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-04 01:38:43 +0100 |
| commit | e8f2c5a48a7d5214925b9722b26270ca7eb3dd3c (patch) | |
| tree | e35773f2cefc82fe82ee4944ba6a2a883a8c21eb /src/check_stmt.cpp | |
| parent | 1c76577918dc6bb7d3761501b0e137719c65accd (diff) | |
[Experimental] Add 'try' and `or_else' built-in procedures
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 24960b33c..d68524994 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1667,7 +1667,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { GB_ASSERT(ctx->curr_proc_sig != nullptr); if (ctx->in_defer) { - error(rs->token, "You cannot 'return' within a defer statement"); + error(rs->token, "'return' cannot be used within a defer statement"); break; } |