Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed May 17, 2024
1 parent 10fd28b commit 5f3f154
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions cpp/src/Ice/Properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace
optional<Property> prop = findProperty(key, false);
if (!prop)
{
throw invalid_argument{"unknown ice property: " + string{key}};
throw invalid_argument{"unknown Ice property: " + string{key}};
}
return prop->defaultValue;
}
Expand Down Expand Up @@ -351,7 +351,7 @@ Ice::Properties::setProperty(string_view key, string_view value)
// If the property is deprecated, log a warning.
if (prop && prop->deprecated)
{
getProcessLogger()->warning("deprecated property: " + string{key});
getProcessLogger()->warning("setting deprecated property: " + string{key});
}

lock_guard lock(_mutex);
Expand Down
4 changes: 2 additions & 2 deletions csharp/src/Ice/Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public void setProperty(string key, string val)
// If the property is deprecated, log a warning.
if (prop is not null && prop.deprecated)
{
Util.getProcessLogger().warning("deprecated property: " + key);
Util.getProcessLogger().warning("setting deprecated property: " + key);
}

lock (this)
Expand Down Expand Up @@ -810,7 +810,7 @@ private void loadConfig()
private static string getDefaultProperty(string key)
{
// Find the property, don't log any warnings.
Property? prop = findProperty(key, false) ?? throw new ArgumentException("unknown ice property: " + key);
Property? prop = findProperty(key, false) ?? throw new ArgumentException("unknown Ice property: " + key);
return prop.defaultValue;
}

Expand Down
6 changes: 3 additions & 3 deletions java/src/Ice/src/main/java/com/zeroc/Ice/Properties.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void setProperty(String key, String value) {

// If the property is deprecated, log a warning
if (prop != null && prop.deprecated()) {
Util.getProcessLogger().warning("deprecated property: " + key);
Util.getProcessLogger().warning("setting deprecated property: " + key);
}

synchronized (this) {
Expand Down Expand Up @@ -814,7 +814,7 @@ private static Property findProperty(String key, Boolean logWarnings) {

if (matches) {
if (prop.deprecated() && logWarnings) {
logger.warning("deprecated property: " + key);
logger.warning("setting deprecated property: " + key);
}
return prop;
}
Expand All @@ -836,7 +836,7 @@ private static Property findProperty(String key, Boolean logWarnings) {
private static String getDefaultProperty(String key) {
Property prop = findProperty(key, false);
if (prop == null) {
throw new IllegalArgumentException("unknown ice property: " + key);
throw new IllegalArgumentException("unknown Ice property: " + key);
}
return prop.defaultValue();
}
Expand Down
4 changes: 2 additions & 2 deletions js/src/Ice/PropertiesI.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Properties
// If the property is deprecated, log a warning
if (prop !== null && prop.deprecated)
{
getProcessLogger().warning("deprecated property: " + key);
getProcessLogger().warning("setting deprecated property: " + key);
}

//
Expand Down Expand Up @@ -524,7 +524,7 @@ class Properties
const prop = Properties.findProperty(key, false);
if (prop === null)
{
throw new Error("unknown ice property: " + key);
throw new Error("unknown Ice property: " + key);
}
return prop.defaultValue;
}
Expand Down
2 changes: 1 addition & 1 deletion js/test/Ice/properties/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
catch(ex)
{
test(ex.message == "unknown ice property: Ice.UnknownProperty");
test(ex.message == "unknown Ice property: Ice.UnknownProperty");
}
out.writeLine("ok");
}
Expand Down
2 changes: 1 addition & 1 deletion php/test/Ice/properties/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function run($args)
test(False);
} catch (Ice\UnknownException $ex) {
// We don't have a specific exception for unknown properties
test($ex->unknown == "unknown ice property: Ice.UnknownProperty");
test($ex->unknown == "unknown Ice property: Ice.UnknownProperty");
}
echo "ok\n";
}
Expand Down
2 changes: 1 addition & 1 deletion ruby/test/Ice/properties/Client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def run(args)
properties.getIceProperty("Ice.UnknownProperty")
test(false)
rescue RuntimeError => ex
test ex.to_s == "unknown ice property: Ice.UnknownProperty"
test ex.to_s == "unknown Ice property: Ice.UnknownProperty"
end
puts "ok"

Expand Down
6 changes: 3 additions & 3 deletions swift/src/Ice/PropertiesI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PropertiesI: LocalObject<ICEProperties>, Properties {

public func getIceProperty(_ key: String) throws -> String {
guard let value = handle.getIceProperty(key) else {
throw RuntimeError("unknown ice property: \(key)")
throw RuntimeError("unknown Ice property: \(key)")
}
return value
}
Expand All @@ -26,7 +26,7 @@ class PropertiesI: LocalObject<ICEProperties>, Properties {

public func getIcePropertyAsInt(_ key: String) throws -> Int32 {
guard let value = handle.getIcePropertyAsInt(key) as? Int32 else {
throw RuntimeError("unknown ice property: \(key)")
throw RuntimeError("unknown Ice property: \(key)")
}
return value
}
Expand All @@ -41,7 +41,7 @@ class PropertiesI: LocalObject<ICEProperties>, Properties {

public func getIcePropertyAsList(_ key: String) throws -> StringSeq {
guard let value = handle.getIcePropertyAsList(key) else {
throw RuntimeError("unknown ice property: \(key)")
throw RuntimeError("unknown Ice property: \(key)")
}
return value
}
Expand Down
2 changes: 1 addition & 1 deletion swift/test/Ice/properties/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class Client: TestHelperI {
_ = try properties.getIceProperty("Ice.UnknownProperty")
try test(false)
} catch let error as RuntimeError {
try test(error.description == "unknown ice property: Ice.UnknownProperty")
try test(error.description == "unknown Ice property: Ice.UnknownProperty")
}

output.write("ok")
Expand Down

0 comments on commit 5f3f154

Please sign in to comment.