Compare commits

...

2 commits

Author SHA1 Message Date
47fd85ab89
Simplify include paths in php.xml by consolidating package paths
Some checks failed
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release-executable (push) Has been cancelled
CI / debug-executable (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
2025-03-21 15:12:36 -04:00
0eceff007c
Refactor exception handling in Configuration class to include error codes 2025-03-21 15:12:31 -04:00
3 changed files with 5 additions and 7 deletions

5
.idea/php.xml generated
View file

@ -11,10 +11,7 @@
</component>
<component name="PhpIncludePathManager">
<include_path>
<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" />
<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="/usr/share/ncc" />

View file

@ -11,6 +11,7 @@ This update introduces minor changes
### Changed
- 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

View file

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