Commit 09f31cf4 authored by Stefano Rivera's avatar Stefano Rivera

Add missing font error message to wrapper

parent 584bf43b
......@@ -22,9 +22,17 @@ Last-Update: 2010-01-30
+)
--- /dev/null
+++ b/pyfiglet
@@ -0,0 +1,5 @@
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+from pyfiglet import main
+from sys import stderr, exit
+
+from pyfiglet import main, FontNotFound
+
+main()
+try:
+ main()
+except FontNotFound:
+ stderr.write('Font not found or not compatible. '
+ 'Please install the toilet-fonts or figlet package for fonts.\n'
+ "Note that not all toilet's .tlf fonts are compatible.\n")
+ exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment