give back more logical error in case of file failed creation