Skip to content

Commit 32fdfbd

Browse files
authored
Fix badext error message (#198)
The error message in `badext` had `.json` outside of the string literal. There was also a doubled `using`.
1 parent 76552a4 commit 32fdfbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serialization.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function badext(filename)
7070
noext, ext = splitext(filename)
7171
msg = if ext == ".jld"
7272
"JLD serialization is no longer supported. Benchmarks should now be saved in\n" *
73-
"JSON format using `save(\"$noext\".json, args...)` and loaded from JSON using\n" *
74-
"using `load(\"$noext\".json, args...)`. You will need to convert existing\n" *
75-
"saved benchmarks to JSON in order to use them with this version of BenchmarkTools."
73+
"JSON format using `save(\"$noext.json\", args...)` and loaded from JSON using\n" *
74+
"`load(\"$noext.json\", args...)`. You will need to convert existing saved\n" *
75+
"benchmarks to JSON in order to use them with this version of BenchmarkTools."
7676
else
7777
"Only JSON serialization is supported."
7878
end

0 commit comments

Comments
 (0)