proper error handling for the service.js configuration file