AutoWear Error Codes and Messages for AutoWear

Discussion in 'AutoApps' started by Phil Schaffer, Sep 17, 2018.

  1. Phil Schaffer

    Phil Schaffer New Member

    Joined:
    May 29, 2018
    Messages:
    6
    Likes Received:
    0
    I have a task that sets a complication on my watch. Occasionally it doesn't change as it's supposed to so I tried to set up error checking thinking I would just send the notification again if AutoWear returned an error. I initially looped back to the AutoWear action is %err was set, but that got me into an endless loop. Using %errmsg seems to work in place of %err. Is there any documentation on the %err and %errmsg variables that are returned from the AutoWear Complications Action?

    Here's the Task I'm trying to work out.

    Thanks,

    Phil
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Just to confirm, there's no issue when using the %errmsg variable?
     
  3. Phil Schaffer

    Phil Schaffer New Member

    Joined:
    May 29, 2018
    Messages:
    6
    Likes Received:
    0
    That seems to be correct. Actually, in reviewing a log file I created, it appears that if there is no actual error, %err will be set to 1 and %errmsg is not set. However, if there is an error, then %err is not set and %errmsg is (for example %errmsg=Timeout). It seems like the function of %err is reversed from what I would expect
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thanks, I'll try fixing that :)
     

Share This Page