Skip to content

Commit

Permalink
Fix badext error message (#198)
Browse files Browse the repository at this point in the history
The error message in `badext` had `.json` outside of the string literal. There was also a doubled `using`.
  • Loading branch information
Seelengrab authored Mar 19, 2021
1 parent 76552a4 commit 32fdfbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/serialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ function badext(filename)
noext, ext = splitext(filename)
msg = if ext == ".jld"
"JLD serialization is no longer supported. Benchmarks should now be saved in\n" *
"JSON format using `save(\"$noext\".json, args...)` and loaded from JSON using\n" *
"using `load(\"$noext\".json, args...)`. You will need to convert existing\n" *
"saved benchmarks to JSON in order to use them with this version of BenchmarkTools."
"JSON format using `save(\"$noext.json\", args...)` and loaded from JSON using\n" *
"`load(\"$noext.json\", args...)`. You will need to convert existing saved\n" *
"benchmarks to JSON in order to use them with this version of BenchmarkTools."
else
"Only JSON serialization is supported."
end
Expand Down

0 comments on commit 32fdfbd

Please sign in to comment.