Skip to content

Commit

Permalink
Fix malformed message made by getDecoratedErrorCodeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepNT committed May 16, 2021
1 parent b86c470 commit af9025a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ def getDecoratedErrorCodeInfo(db : Database, error_code : int) -> str:

fatal = (error_code & IS_FATAL_MASK)

ret = getFacilityNameFromErrorCode(db, error_code)
ret = "Facility : " + getFacilityNameFromErrorCode(db, error_code)
facDesc = getFacilityDescriptionFromErrorCode(db, error_code)
if facDesc != None:
ret += f" ({facDesc})\n"
else:
ret += "\n"

ret += getErrorNameFromErrorCode(db, error_code) + "\n"
ret += "Error code : " + getErrorNameFromErrorCode(db, error_code) + "\n"
errDesc = getErrorDescriptionFromErrorCode(db, error_code)
if errDesc != None:
ret += f"Error description : {errDesc}\n"
Expand Down

0 comments on commit af9025a

Please sign in to comment.