make, swift3: fix parsing empty literal sequences.
[jackhill/mal.git] / rpython / step1_read_print.py
index c3ff0af..fe39fd0 100644 (file)
@@ -29,8 +29,12 @@ def entry_point(argv):
             print(REP(line))
         except EOFError as e:
             break
+        except reader.Blank:
+            continue
+        except types.MalException as e:
+            print(u"Error: %s" % printer._pr_str(e.object, False))
         except Exception as e:
-            print(e)
+            print("Error: %s" % e)
             #print("".join(traceback.format_exception(*sys.exc_info())))
     return 0