Browse Source

Fix error display with multiple arguments

Jovian (Netbook) 6 years ago
parent
commit
7b44340818
1 changed files with 2 additions and 2 deletions
  1. 2 2
      basic_display.py

+ 2 - 2
basic_display.py

@@ -10,8 +10,8 @@ class BasicDisplay():
         print('|', title, '|')
         print(bar)
 
-    def error(self, message):
-        print('ERROR :', message)
+    def error(self, *message):
+        print('ERROR :', *message)
 
     def product(self, p):
         print(p.id ,':', p.name)