Browse Source

New display method for errors

Jovian (Netbook) 6 years ago
parent
commit
8358301d90
1 changed files with 3 additions and 0 deletions
  1. 3 0
      basic_display.py

+ 3 - 0
basic_display.py

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