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)
8888 try {
8989 $ this ->eavResource ->save ($ attribute );
9090 } catch (\Exception $ e ) {
91- throw new StateException (__ ("The attribute can't be saved. " ));
91+ throw new StateException (__ ("The attribute can't be saved. " ), $ e );
9292 }
9393 return $ attribute ;
9494 }
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ protected function getUniqueFileName($file)
197197 $ file
198198 );
199199 } else {
200- $ destFile = dirname ($ file ) . '/ ' . \Magento \MediaStorage \Model \File \Uploader::getNewFileName (
200+ $ destFile = rtrim ( dirname ($ file), ' /. ' ) . '/ ' . \Magento \MediaStorage \Model \File \Uploader::getNewFileName (
201201 $ this ->getOriginalFilePath ($ file )
202202 );
203203 }
You can’t perform that action at this time.
0 commit comments