bin/verify.js: Return error code if global assignment error detected