Simple fix for #1013 and the migration permission error message.

git-svn-id: file:///home/svn/framework3/trunk@8714 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Stephen Fewer 2010-03-04 19:31:36 +00:00
parent 0900314a15
commit a44358df67
1 changed files with 4 additions and 4 deletions

View File

@ -184,17 +184,17 @@ class ClientCore < Extension
# We cant migrate into a process that does not exist.
if( process == nil )
raise ArgumentError, "Cannot migrate into non existant process", caller
raise RuntimeError, "Cannot migrate into non existant process", caller
end
# We cant migrate into a process that we are unable to open
if( process['arch'] == nil )
raise ArgumentError, "Cannot migrate into this process (insufficient privileges)", caller
if( process['arch'] == nil or process['arch'].empty? )
raise RuntimeError, "Cannot migrate into this process (insufficient privileges)", caller
end
# And we also cant migrate into our own current process...
if( process['pid'] == client.sys.process.getpid )
raise ArgumentError, "Cannot migrate into current process", caller
raise RuntimeError, "Cannot migrate into current process", caller
end
# Create a new payload stub