JS: Provides meaningful message in case of compile issues

pull/12598/head
Hamdi Sahloul 6 years ago
parent 35bee663eb
commit 95b1fe0776
  1. 3
      modules/js/src/make_umd.py

@ -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);

Loading…
Cancel
Save