JS: Provides meaningful message in case of compile issues

This commit is contained in:
Hamdi Sahloul 2018-09-20 20:56:21 +09:00
parent 35bee663eb
commit 95b1fe0776

View File

@ -103,4 +103,7 @@ if __name__ == "__main__":
if len(sys.argv) > 2:
opencvjs = sys.argv[1]
cvjs = sys.argv[2]
if not os.path.isfile(opencvjs):
print('opencv.js file not found! Have you compiled the opencv_js module?')
exit()
make_umd(opencvjs, cvjs);