File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function save(\Magento\Eav\Api\Data\AttributeInterface $attribute)
88
88
try {
89
89
$ this ->eavResource ->save ($ attribute );
90
90
} catch (\Exception $ e ) {
91
- throw new StateException (__ ("The attribute can't be saved. " ));
91
+ throw new StateException (__ ("The attribute can't be saved. " ), $ e );
92
92
}
93
93
return $ attribute ;
94
94
}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ protected function getUniqueFileName($file)
197
197
$ file
198
198
);
199
199
} else {
200
- $ destFile = dirname ($ file ) . '/ ' . \Magento \MediaStorage \Model \File \Uploader::getNewFileName (
200
+ $ destFile = rtrim ( dirname ($ file), ' /. ' ) . '/ ' . \Magento \MediaStorage \Model \File \Uploader::getNewFileName (
201
201
$ this ->getOriginalFilePath ($ file )
202
202
);
203
203
}
You can’t perform that action at this time.
0 commit comments