fix a spot where an error was not properly returned
fix a spot where an error was not properly returned

natefinch/lumberjack,snowsnail/lumberjack,chentao/lumberjack,yangpingcd/lumberjack,elithrar/lumberjack,lagilaper/lumberjack