fix mapreduce error message is [object object]