diff --git a/font-patcher b/font-patcher index c16a67f..ac72ece 100755 --- a/font-patcher +++ b/font-patcher @@ -6,7 +6,7 @@ from __future__ import absolute_import, print_function, unicode_literals # Change the script version when you edit this script: -script_version = "4.14.3" +script_version = "4.14.4" version = "3.2.1" projectName = "Nerd Fonts" @@ -2127,6 +2127,9 @@ def main(): sourceFonts = [] all_fonts = fontforge.fontsInFile(args.font) + if not all_fonts: + logger.critical("Can not find any fonts in '%s'", args.font) + sys.exit(1) for i, subfont in enumerate(all_fonts): if len(all_fonts) > 1: print("\n")