src/graph_def.c: Add error messages to "def_create".