Removed error and rename msg to message