Skip to content

Commit

Permalink
Update exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival committed Oct 3, 2019
1 parent 790bb47 commit 6aa5600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Utils/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function getIni(string $key): string
{
$result = ini_get($key);
if ($result === false) {
throw new IOException("Failed to get php.ini key '$key'!");
throw new IOException("Unable to get php.ini key '$key'.");
}
return $result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ public static function win2utf(string $s): string

private static function createEncodingIOException(string $source, string $target): IOException
{
return new IOException("Could not convert '$source' to '$target' encoding!");
return new IOException("Unable to convert '$source' to '$target' encoding.");
}
}

0 comments on commit 6aa5600

Please sign in to comment.