Update dynamic_proxy.js

added error message