Compare commits

..

No commits in common. "47fd85ab89a650c72d50aa5e4d945bd8fdd3263a" and "6acde50ec125be4668fd98f417122a2115c59550" have entirely different histories.

3 changed files with 7 additions and 5 deletions

5
.idea/php.xml generated
View file

@ -11,7 +11,10 @@
</component> </component>
<component name="PhpIncludePathManager"> <component name="PhpIncludePathManager">
<include_path> <include_path>
<path value="/var/ncc/packages" /> <path value="/var/ncc/packages/net.nosial.optslib=1.1.2" />
<path value="/var/ncc/packages/net.nosial.loglib2=1.0.2" />
<path value="/var/ncc/packages/com.symfony.yaml=v7.1.5" />
<path value="/var/ncc/packages/net.nosial.loglib=2.0.4" />
<path value="/var/ncc/packages/com.symfony.polyfill_mbstring=v1.31.0" /> <path value="/var/ncc/packages/com.symfony.polyfill_mbstring=v1.31.0" />
<path value="/var/ncc/packages/com.symfony.polyfill_ctype=v1.31.0" /> <path value="/var/ncc/packages/com.symfony.polyfill_ctype=v1.31.0" />
<path value="/usr/share/ncc" /> <path value="/usr/share/ncc" />

View file

@ -11,7 +11,6 @@ This update introduces minor changes
### Changed ### Changed
- Disabled tty mode for the main execution points to prevent issues with docker environments - Disabled tty mode for the main execution points to prevent issues with docker environments
- Refactor exception handling in Configuration class to include error codes
## [1.1.7] - 2025-03-14 ## [1.1.7] - 2025-03-14

View file

@ -172,7 +172,7 @@
catch(Exception $e) catch(Exception $e)
{ {
$this->logger->error(sprintf('Unable to load configuration "%s", %s', $this->name, $e->getMessage()), $e); $this->logger->error(sprintf('Unable to load configuration "%s", %s', $this->name, $e->getMessage()), $e);
throw new RuntimeException(sprintf('Unable to load configuration "%s"', $this->name), $e->getCode(), $e); throw new RuntimeException(sprintf('Unable to load configuration "%s"', $this->name), $e);
} }
} }
else else
@ -359,7 +359,7 @@
} }
catch (Exception $e) catch (Exception $e)
{ {
throw new RuntimeException('Unable to write configuration file', $e->getCode(), $e); throw new RuntimeException('Unable to write configuration file', $e);
} }
$this->modified = false; $this->modified = false;
@ -408,7 +408,7 @@
} }
catch (Exception $e) catch (Exception $e)
{ {
throw new RuntimeException('Unable to read configuration file', $e->getCode(), $e); throw new RuntimeException('Unable to read configuration file', $e);
} }
$prefix = 'CONFIGLIB_' . strtoupper($this->name) . '_'; $prefix = 'CONFIGLIB_' . strtoupper($this->name) . '_';