Skip to content

Commit a837cc2

Browse files
committed
Errors print in red
1 parent 692cacf commit a837cc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def wrapper(*args, **kwargs):
1717
}
1818
return data
1919
except Exception as error:
20-
print(error)
20+
# Print error in red
21+
print("\033[91m" + str(error) + "\033[0m")
2122

2223
# Rollback database session
2324
try:

0 commit comments

Comments
 (0)