don't output resource error, Fix spm#1004

https://github.com/spmjs/spm/issues/1004