Skip to content

Commit

Permalink
Making the error message clearer and fixing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed Nov 20, 2023
1 parent 11f3fe0 commit d7658cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function log_evaluation(logger, performance_evaluation)
function log_evaluation(logger::Logger, performance_evaluation)
experiment = getorcreateexperiment(logger.service, logger.experiment_name;
artifact_location=logger.artifact_location)
run = createrun(logger.service, experiment;
Expand Down
3 changes: 2 additions & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function Logger(baseuri; experiment_name="MLJ experiment",
service = MLFlow(baseuri)

if ~healthcheck(service)
error("It seems that the MLFlow server is not running. For more information, see https://mlflow.org/docs/latest/quickstart.html")
error("It seems that the MLFlow server is not running at specified "*
"location, $baseuri. For more information, see https://mlflow.org/docs/latest/quickstart.html")
end
Logger(service, verbosity, experiment_name, artifact_location)
end

0 comments on commit d7658cb

Please sign in to comment.