Skip to content

Commit

Permalink
fix: Minor refactor to format exception message
Browse files Browse the repository at this point in the history
Signed-off-by: yanghua <yanghua1127@gmail.com>
  • Loading branch information
yanghua committed Jun 7, 2022
1 parent 7d16516 commit 8d02f8b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ RegistryFile registryFile(
case "file":
return new LocalRegistryFile(registryPath);
default:
throw new RuntimeException("Registry storage %s is unsupported");
throw new RuntimeException(
String.format("Registry storage %s is unsupported", scheme.get()));
}
}

Expand Down

0 comments on commit 8d02f8b

Please sign in to comment.