@@ 194-198 (lines=5) @@ | ||
191 | $options['alias'] = sprintf($this->options['gdAlias'], $file->getName()); |
|
192 | } catch (Google_Service_Exception $e) { |
|
193 | $err = json_decode($e->getMessage(), true); |
|
194 | if (isset($err['error']) && $err['error']['code'] == 404) { |
|
195 | return ['exit' => true, 'error' => [elFinder::ERROR_TRGDIR_NOT_FOUND, $options['path']]]; |
|
196 | } else { |
|
197 | return ['exit' => true, 'error' => $e->getMessage()]; |
|
198 | } |
|
199 | } catch (Exception $e) { |
|
200 | return ['exit' => true, 'error' => $e->getMessage()]; |
|
201 | } |
@@ 310-314 (lines=5) @@ | ||
307 | $options['alias'] = sprintf($this->options['gdAlias'], $file->getName()); |
|
308 | } catch (Google_Service_Exception $e) { |
|
309 | $err = json_decode($e->getMessage(), true); |
|
310 | if (isset($err['error']) && $err['error']['code'] == 404) { |
|
311 | return ['exit' => true, 'error' => [elFinder::ERROR_TRGDIR_NOT_FOUND, $options['path']]]; |
|
312 | } else { |
|
313 | return ['exit' => true, 'error' => $e->getMessage()]; |
|
314 | } |
|
315 | } catch (Exception $e) { |
|
316 | return ['exit' => true, 'error' => $e->getMessage()]; |
|
317 | } |