A note on error analysis in differential dynamic programming