Better error handling for Storage.apply.