Skip to content

Commit 4bc0f93

Browse files
authored
just use repr
1 parent f8e5a1a commit 4bc0f93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ all_params = [get(dict, :params, [])..., get(dict, :whereparams, [])...]
284284
```
285285
"""
286286
function splitdef(fdef)
287-
error_msg = "Not a function definition: $fdef"
287+
error_msg = "Not a function definition: $(repr(fdef))"
288288
@assert(@capture(longdef1(fdef),
289289
function (fcall_ | fcall_) body_ end),
290290
"Not a function definition: $fdef")
@@ -303,9 +303,6 @@ function splitdef(fdef)
303303
di
304304
end
305305

306-
splitdef(::Nothing) = @assert(false, "Not a function definition: nothing")
307-
308-
309306
"""
310307
combinedef(dict::Dict)
311308

0 commit comments

Comments
 (0)