Skip to content

Commit

Permalink
💻 5959 shorten error messages (#5961)
Browse files Browse the repository at this point in the history
Fixes #5959 
Execute error and other error (ServerError) are shortened. 

**How to test**

Follow these steps to verify this PR works as intended:

```repeat 100 times print 'Hello Hedy'```
* go to level 7
* run ```repeat 100 times print 'Hello Hedy'```
* the error messages will be: 'Something went wrong. Your program takes too long to run.'
* @jpelay I don't know how to get the other_error/ServerError, to test it.

**Checklist**
Done? Check if you have it all in place using this list: (mark with x if done)

- [x] Contains one of the PR categories in the name
- [x] Describes changes in the format above
- [x] Links to an existing issue or discussion
- [x] Has a "How to test" section

Co-Authored-By: jpelay <[email protected]>
  • Loading branch information
AnneliesVlaar and jpelay authored Nov 27, 2024
1 parent c5a7217 commit 8dc88c0
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 92 deletions.
2 changes: 1 addition & 1 deletion content/client-messages/bn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ CheckInternet: Check whether your Internet connection is working।
Program_too_long: Your program takes too long to run।
Connection_error: We couldn't reach the server।
Transpile_error: We can't run your program।
Execute_error: Something went wrong while running the program
Execute_error: Something went wrong।
Other_error: Oops! Maybe we made a little mistake।
Empty_output: This code works but does not print anything. Add a print command to your code or use the turtle to get output।
4 changes: 2 additions & 2 deletions content/client-messages/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ CheckInternet: Check whether your Internet connection is working.
Connection_error: We couldn't reach the server.
Empty_output: This code works but does not print anything. Add a print command to your code or use the turtle to get output.
Errors_found: You made a mistake! Don't worry, we still ran the program
Execute_error: Something went wrong while running the program.
Execute_error: Something went wrong.
Other_error: Oops! Maybe we made a little mistake.
Program_repair: This could be the correct code, can you fix it?
Program_too_long: Your program takes too long to run.
ServerError: You wrote a program we weren't expecting. If you want to help, send us an email with the level and your program at [email protected]. In the meantime, try something a little different and take another look at the examples. Thanks!
ServerError: You can help us out by sending an email with the level and your program to [email protected]. In the meantime, try something a little different. Thanks!
Transpile_error: We can't run your program.
Transpile_success:
- Good job!
Expand Down
Loading

0 comments on commit 8dc88c0

Please sign in to comment.