Action Callback as an executable - Invalid result tag

I am trying to implement a action callback as an executable. However I encounter an error when I run the command on CLI.

YANG -

container scping {

    tailf:action scp {
        tailf:exec "/some-path/scp.sh" {
            tailf:args "-c $(context) -p $(path)";
        }

        input {
            leaf source {
                type string;
            }

            leaf destination {
                type string;
            }
        }

        output {
            leaf filename {
                type string;
            }

            leaf complete {
                type string;
            }

            leaf size {
                type string;
            }

            leaf time-taken {
                type string;
            }
        }
    }
}

scp.sh -

#!/bin/bash
echo $@

Error message -

confd Invalid result tag from external command "/some-path/scp.sh": "-c"

Hello,

can you check chapter 11.3 Action as Executable in ConfD User Guide and verify that executable
returns 0 when there is no error and non 0 when there is an error? I guess you need to add exit 0 to your sample scp.sh script.

Also, please can you check that on error returned error message is according to requirements:

e.g.

error-tag resource-denied
error-message "out of memory"