Skip to content

Commit 1e89886

Browse files
authored
Merge pull request #197 from JunoLab/sp/betterwarnmessage
improve warning for unrecognised commands
2 parents baf47c2 + e14cb80 commit 1e89886

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/comm.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,12 @@ function handlemsg(t, args...)
168168
rethrow()
169169
end
170170
else
171-
@warn("Atom.jl: unrecognised message $t.")
171+
@warn("""
172+
Atom.jl: unrecognised message `$t`.
173+
Please make sure your Atom and Julia packages are in sync.
174+
- Try `using Pkg; Pkg.update()` to update this package.
175+
- Check for `julia-client` updates in Atom.
176+
""", _id=t, maxlog=1)
172177
callback nothing && msg("cancelCallback", callback)
173178
end
174179
end

0 commit comments

Comments
 (0)