Commits

Roger Light committed a727149

Quit on bad config.

Comments (0)

Files changed (1)

src/mqtt2pachube.c

 	}
 
 	memset(&config, 0, sizeof(struct mqtt2pachube_config));
-	config_parse(argv[1], &config);
+	if(config_parse(argv[1], &config)) return 1;
 	memset(&queue, 0, sizeof(struct pachube_queue));
 
 	mosquitto_lib_init();