Skip to content

Commit

Permalink
fix: Minor refactor to format exception message (#2764)
Browse files Browse the repository at this point in the history
Signed-off-by: yanghua <[email protected]>
  • Loading branch information
yanghua authored Jun 7, 2022
1 parent 269055e commit da763c6
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 da763c6

Please sign in to comment.