mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Merge #3986
3986: Use consistent case for error messages r=def- a=ChillerDragon
Use the style introduced by `@def-` in
61e47422f6
consistency :)
## Checklist
- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)
Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
This commit is contained in:
commit
42f21c6dd9
9
.github/workflows/style.yml
vendored
9
.github/workflows/style.yml
vendored
|
@ -36,6 +36,15 @@ jobs:
|
|||
run: scripts/check_dilate.sh release data
|
||||
- name: Shellcheck
|
||||
run: find . -type f -name '*.sh' -print0 | xargs -0 shellcheck
|
||||
- name: Check log error case
|
||||
run: |
|
||||
if grep -Eqr '(msg|Print).*\(.*"[Ee]rror:' src/;
|
||||
then
|
||||
echo "Expected log errors to be in this format 'ERROR: error message'"
|
||||
echo "Found these non uppercased log errors:"
|
||||
grep -Er '(msg|Print).*\(.*"[Ee]rror:' src/
|
||||
exit 1
|
||||
fi
|
||||
- name: Pylint
|
||||
run: |
|
||||
pylint --version
|
||||
|
|
|
@ -190,7 +190,7 @@ void CCommandProcessorFragment_OpenGL::SetState(const CCommandBuffer::SState &St
|
|||
}
|
||||
else
|
||||
{
|
||||
dbg_msg("opengl", "Error: this call should not happen.");
|
||||
dbg_msg("opengl", "ERROR: this call should not happen.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3693,7 +3693,7 @@ void CClient::Con_SaveReplay(IConsole::IResult *pResult, void *pUserData)
|
|||
{
|
||||
int Length = pResult->GetInteger(0);
|
||||
if(Length <= 0)
|
||||
pSelf->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "Error: length must be greater than 0 second.");
|
||||
pSelf->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "ERROR: length must be greater than 0 second.");
|
||||
else
|
||||
pSelf->SaveReplay(Length);
|
||||
}
|
||||
|
@ -3711,9 +3711,9 @@ void CClient::SaveReplay(const int Length)
|
|||
}
|
||||
|
||||
if(!DemoRecorder(RECORDER_REPLAYS)->IsRecording())
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "Error: demorecorder isn't recording. Try to rejoin to fix that.");
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "ERROR: demorecorder isn't recording. Try to rejoin to fix that.");
|
||||
else if(DemoRecorder(RECORDER_REPLAYS)->Length() < 1)
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "Error: demorecorder isn't recording for at least 1 second.");
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "replay", "ERROR: demorecorder isn't recording for at least 1 second.");
|
||||
else
|
||||
{
|
||||
// First we stop the recorder to slice correctly the demo after
|
||||
|
|
Loading…
Reference in a new issue